Skip to content

modern-pdf-lib


modern-pdf-lib / buildDocumentStructure

Function: buildDocumentStructure()

buildDocumentStructure(pages, meta, registry, options?): DocumentStructure

Defined in: src/core/pdfCatalog.ts:320

Build the complete document structure.

Parameters

pages

readonly PageEntry[]

Page entries (already have refs allocated).

meta

DocumentMetadata

Document metadata.

registry

PdfObjectRegistry

Object registry.

options?

CatalogOptions

Optional catalog settings.

Returns

DocumentStructure

Released under the MIT License.