Guides
PDF export
Two entry points, same engine — the toolbar button and the exportPDF() method.
PDF export
Two entry points, same engine:
- Toolbar button — visible when the
exportPdfflag istrue. exportPDF(options?)— programmatic; works regardless of the flag.
await editor.exportPDF({
filename: 'quarterly-report', // '.pdf' appended automatically (default: 'document.pdf')
margin: 10, // mm — or [top, left, bottom, right] (default: 10)
format: 'a4', // jsPDF page format (default: 'a4')
orientation: 'portrait' // 'portrait' | 'landscape' (default: 'portrait')
});See Feature Flags for exportPdf, and Imperative
API for the full method reference.
