Skip to main content
Version: Version 5

Type Alias: DocumentPrintOptions

DocumentPrintOptions = object

Options for configuring document printing.

Properties​

autorotate?​

optional autorotate?: boolean

When enabled, counter-rotates pages to print content upright, undoing any rotation applied in the viewer. Landscape content is then rotated 90° clockwise to fill the portrait paper. When disabled, pages print as shown in the viewer.

Default Value​

false


dpi?​

optional dpi?: number

The print resolution in dots per inch (DPI). Higher values produce better quality but larger file sizes.


fitToSize?​

optional fitToSize?: boolean

When enabled, scales content to fit within the paper size. When disabled, prints at actual size (may clip oversized content).

Default Value​

true


includeAnnotations?​

optional includeAnnotations?: boolean

Whether to include annotations in the printed document.


pageNumbers?​

optional pageNumbers?: number[]

Specific page numbers to print. If not specified, all pages will be printed.