Skip to content

modern-pdf-lib


modern-pdf-lib / buildCatalog

Function: buildCatalog()

buildCatalog(pagesRef, registry, options?): PdfRef

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

Build the /Catalog dictionary.

Parameters

pagesRef

PdfRef

Indirect reference to the root /Pages node.

registry

PdfObjectRegistry

Object registry.

options?

CatalogOptions

Optional catalog-level settings.

Returns

PdfRef

The indirect reference to the /Catalog dict.

Released under the MIT License.