DocumentSnapshot
Kind: class
Module/package: models
SDK: pdfdancer-client-typescript 2.0.0
Represents a complete snapshot of a PDF document. Contains page count, font information, and snapshots of all pages.
Declaration
class DocumentSnapshot
Members
constructor
constructor(pageCount: number, fonts: DocumentFontInfo[], pages: PageSnapshot[]): DocumentSnapshot
getAllElements
getAllElements(): ObjectRef[]
Gets all elements across all pages.
getElementsByType
getElementsByType(type: ObjectType): ObjectRef[]
Gets all elements of a specific type across all pages.
getPageSnapshot
getPageSnapshot(pageNumber: number): PageSnapshot
Gets the snapshot for a specific page by index.
getTotalElementCount
getTotalElementCount(): number
Returns the total number of elements across all pages.
fonts
fonts: DocumentFontInfo[]
pageCount
pageCount: number
pages
pages: PageSnapshot[]