Atelier Logo

Atelier

Guides

PDF export

Two entry points, same engine — the toolbar button and the exportPDF() method.

PDF export

Two entry points, same engine:

  1. Toolbar button — visible when the exportPdf flag is true.
  2. 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.

On this page