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

Method getPageCount

src/parser/document-parser.ts:104–104  ·  view source on GitHub ↗

* Get the actual page count by walking the page tree. * This is more reliable than trusting /Count metadata for corrupted PDFs.

()

Source from the content-addressed store, hash-verified

102 * This is more reliable than trusting /Count metadata for corrupted PDFs.
103 */
104 getPageCount(): number;
105
106 /**
107 * Get all page references by walking the page tree.

Implementers 2

DocumentParsersrc/parser/document-parser.ts
PDFsrc/api/pdf.ts

Calls

no outgoing calls

Tested by

no test coverage detected