ExportPDFOptions
ExportPDFOptions:
object
Export PDF options
Type declaration
bitmap?
optionalbitmap:boolean
Render page as bitmap image (default: false)
bitmapScale?
optionalbitmapScale:number
The scale (quality) of the bitmap image (default: 1)
compress?
optionalcompress:boolean
Whether to compress the PDF
createLinks?
optionalcreateLinks:boolean
Whether to create links for shape’s link property
createPageLinks?
optionalcreatePageLinks:boolean
Whether to create page links for shape’s reference property
dark?
optionaldark:boolean
Whether to export in dark mode
excludePages?
optionalexcludePages:Page[]
The pages to exclude
fonts?
optionalfonts:PDFFont[]
The fonts to be embedded
pageFormat?
optionalpageFormat:PDFPageFormat
The format of the page
pageMargin?
optionalpageMargin:number
The margin of the page
pageOrientation?
optionalpageOrientation:PDFPageOrientation
The orientation of the page
postrenderPage()?
optionalpostrenderPage: (page,jsPDF,canvas) =>void
A function to be called after rendering each page
Parameters
• page: Page
• jsPDF: jsPDF
• canvas: Canvas
Returns
void
prerenderPage()?
optionalprerenderPage: (page,jsPDF,canvas) =>void
A function to be called before rendering each page
Parameters
• page: Page
• jsPDF: jsPDF
• canvas: Canvas
Returns
void