MCPcopy Create free account
hub / github.com/LibPDF-js/core / getCatalog

Method getCatalog

src/api/pdf.ts:1555–1557  ·  view source on GitHub ↗

* Get the document catalog dictionary. * * Note: For internal use, prefer accessing the catalog via context which * provides higher-level methods for working with catalog structures.

()

Source from the content-addressed store, hash-verified

1553 * provides higher-level methods for working with catalog structures.
1554 */
1555 getCatalog(): PdfDict {
1556 return this.ctx.catalog.getDict();
1557 }
1558
1559 /**
1560 * Get all pages in document order.

Callers 1

getOrCreateFormMethod · 0.95

Calls 1

getDictMethod · 0.65

Tested by

no test coverage detected