File is loaded asynchronously, extends eventEmitter, will publish a 'ready'event when document has been loaded
void
load pdf file, emits 'ready' || 'error' events
file path
load document for incremental updates
pdf file path
Persist changes and write to disk or if no arguments provided returns Buffer
Callbck Function
Generated using TypeDoc
Document
Document represents a PdfMemDocument, construct from an existing pdf document. Document is the core class for reading and manipulating PDF files and writing them back to disk. Document was designed to allow easy access to the object structure of a PDF file. Document should be used whenever you want to change the object structure of a PDF file.