Skip to Content

Function: collectUsedFonts()

function collectUsedFonts(input: Uint8Array): UsedFonts;

Parse a PPTX file and collect the font names it references.

This is a lightweight preflight helper: it reads the document model and text styles but does not render slides or load font files. Use it to decide which fonts should be installed, bundled, or mapped before calling the conversion APIs.

Parameters

input

Uint8Array

PPTX binary data.

Returns

UsedFonts

Theme font slots and a unique sorted list of referenced font names.