Skip to content

modern-pdf-lib


modern-pdf-lib / serializePdf

Function: serializePdf()

serializePdf(registry, structure, options?): Uint8Array

Defined in: src/core/pdfWriter.ts:670

Serialize a complete PDF from a registry and structure refs.

Parameters

registry

PdfObjectRegistry

All registered indirect objects.

structure

DocumentStructure

Catalog / Info / Pages references.

options?

PdfSaveOptions

Save options.

Returns

Uint8Array

The raw PDF bytes.

Released under the MIT License.