Web SDKv1.0.0

PagesApi.count

Number of pages the document has now. A getter: answers at once, and throws DOCUMENT_CLOSED on a closed document.
getterReadingsince 1.0.0

Signature

get count(): number

Returns

number

Throws

  • DOCUMENT_CLOSED — read on a closed document.

Example

TypeScript
const last = doc.pages.count - 1;

More in PagesApi