Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
addPage
Method · 0.95
copyPagesFrom
Method · 0.95
extractPages
Method · 0.95
Calls
1
getPageCount
Method · 0.65
Tested by
no test coverage detected