Skip to main content
Node-only helpers: fonts, files and rendering. PowerPointPresentation from this entry point also reads and writes files.

registerPptxFonts()

Install exact Office faces when available, with DOCX’s portable fallback. Import from @reductoai/pptx/node.

registerSystemFonts()

Installs the built-in table that maps Office font families to the faces the package lays out with. Import from @reductoai/pptx/node.

registerPortableFonts()

Install the portable FaceSets from dir (defaults to the font package), plus the packaged pan-CJK fallback. Import from @reductoai/pptx/node.

registerFontMirror()

Register every readable face in a portable registry mirror. Missing files and malformed face slots are skipped. A malformed manifest or a directory without font-table.json throws immediately so a configured deployment never silently falls back to different metrics. Import from @reductoai/pptx/node.

registerLinuxCjkFallback()

Register the packaged CJK fallback as arial unicode ms. Import from @reductoai/pptx/node.

setFontCacheDir()

Redirect the unpacked-face cache. Clears the in-memory memo so already extracted members are re-materialised under the new root on next lookup. Import from @reductoai/pptx/node.

runPptxPipelineFile()

Read a .pptx from disk. Same as runPptxPipeline, with sourcePath recorded. Import from @reductoai/pptx/node.

renderPdfBytesNode()

Import from @reductoai/pptx/node.

renderPngPages()

Render IR pages to PNG buffers. Fonts and images come from the IR + registry. Import from @reductoai/pptx/node.