Search results

IPrintOptions API in JavaScript (ES5) Diagram API control

Defines the options to export diagrams

Properties

margin

MarginModel

Sets the margin of the page to be printed

multiplePage

boolean

Defines whether the diagram has to be exported as single or multiple images

pageHeight

number

Sets the height of the page to be printed

pageOrientation

PageOrientation

Sets the orientation of the page to be printed

  • Landscape - Display with page Width is more than the page Height.
  • Portrait - Display with page Height is more than the page width.

pageWidth

number

Sets the width of the page to be printed

region

DiagramRegions

Sets the region for the print settings

  • PageSettings - The region to be exported/printed will be based on the given page settings
  • Content - Only the content of the diagram control will be exported
  • CustomBounds - The region to be exported will be explicitly defined

stretch

Stretch

Sets the aspect ratio of the exported image

  • None - Sets the stretch type for diagram as None
  • Stretch - Sets the stretch type for diagram as Stretch
  • Meet - Sets the stretch type for diagram as Meet
  • Slice - Sets the stretch type for diagram as Slice