Skip to main content
The PDF comes from the same layout that the editor and the PNG export use. Each slide is one page at the deck’s slide size. Text stays text: it is selectable and searchable, and the fonts are embedded as subsets.

Node: one call

toPdf(path?) returns the bytes too, so you can stream them instead of writing a file:

Node: low-level pipeline

Without the facade, lay out the file and paint the IR. Use one registry for layout and render: the PDF embeds the faces that the layout measured.

Browser

Lay out the bytes with a face provider, then paint. See JS API in the browser for the steps.

Options

toPdf(path, options) takes ToPdfOptions: runPptxPipeline and runPptxPipelineFile take includeHiddenSlides and onProgress.
Results depend on fonts. With the portable profile, line breaks match Microsoft PowerPoint’s when the deck uses Office fonts that have a metric clone (Calibri, Cambria, Arial, Times New Roman, Courier New). See Fonts.