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

Method getPageCount

src/api/pdf.ts:1583–1585  ·  view source on GitHub ↗

* Get page count.

()

Source from the content-addressed store, hash-verified

1581 * Get page count.
1582 */
1583 getPageCount(): number {
1584 return this.ctx.pages.getPageCount();
1585 }
1586
1587 /**
1588 * Get a single page by index (0-based).

Callers 3

addPageMethod · 0.95
copyPagesFromMethod · 0.95
extractPagesMethod · 0.95

Calls 1

getPageCountMethod · 0.65

Tested by

no test coverage detected