PageSnapshot
Kind: class
Module/package: models
SDK: pdfdancer-client-typescript 2.0.0
Represents a snapshot of a single page in a PDF document. Contains the page reference and all elements on that page.
Declaration
class PageSnapshot
Members
constructor
constructor(pageRef: PageRef, elements: ObjectRef[]): PageSnapshot
getElementCount
getElementCount(): number
Returns the number of elements on this page.
getElementsByType
getElementsByType(type: ObjectType): ObjectRef[]
Filters elements by object type.
getPageNumber
getPageNumber(): number
Gets the page index from the page reference.
elements
elements: ObjectRef[]
pageRef
pageRef: PageRef