> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# @reductoai/pptx/node

Node-only helpers: fonts, files and rendering. `PowerPointPresentation` from this entry point also reads and writes files.

## `registerPptxFonts()`

```ts theme={null}
function registerPptxFonts(registry?: FontRegistry): void
```

Install exact Office faces when available, with DOCX's portable fallback.

Import from `@reductoai/pptx/node`.

## `registerSystemFonts()`

```ts theme={null}
function registerSystemFonts(registry?: FontRegistry): void
```

Installs the built-in table that maps Office font families to the faces the package lays out with.

Import from `@reductoai/pptx/node`.

## `registerPortableFonts()`

```ts theme={null}
function registerPortableFonts(dir?: string, registry?: FontRegistry): void
```

Install the portable FaceSets from `dir` (defaults to the font package),
plus the packaged pan-CJK fallback.

Import from `@reductoai/pptx/node`.

## `registerFontMirror()`

```ts theme={null}
function registerFontMirror(dir: string, registry?: FontRegistry): FontMirrorStats
```

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()`

```ts theme={null}
function registerLinuxCjkFallback(registry?: FontRegistry): boolean
```

Register the packaged CJK fallback as `arial unicode ms`.

Import from `@reductoai/pptx/node`.

## `setFontCacheDir()`

```ts theme={null}
function setFontCacheDir(dir: string): void
```

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()`

```ts theme={null}
function runPptxPipelineFile(
  path: string,
  options?: PptxPipelineOptions,
): Promise<LayoutDocument>
```

Read a .pptx from disk. Same as `runPptxPipeline`, with `sourcePath` recorded.

Import from `@reductoai/pptx/node`.

## `renderPdfBytesNode()`

```ts theme={null}
function renderPdfBytesNode(
  ir: LayoutDocument,
  registry?: FontRegistry,
  opts?: RenderPdfOptions,
): Promise<RenderPdfResult>
```

Import from `@reductoai/pptx/node`.

## `renderPngPages()`

```ts theme={null}
function renderPngPages(
  ir: LayoutDocument,
  opts?: RenderPngOptions,
): Promise<RenderedPng[]>
```

Render IR pages to PNG buffers. Fonts and images come from the IR + registry.

Import from `@reductoai/pptx/node`.
