Type Alias: DocumentPrintOptions
DocumentPrintOptions =
object
Options for configuring document printing.
Properties
autorotate?
optionalautorotate?: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?
optionaldpi?:number
The print resolution in dots per inch (DPI). Higher values produce better quality but larger file sizes.
fitToSize?
optionalfitToSize?: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?
optionalincludeAnnotations?:boolean
Whether to include annotations in the printed document.
pageNumbers?
optionalpageNumbers?:number[]
Specific page numbers to print. If not specified, all pages will be printed.