Performs garbage collection on the document. All objects not reachable by the trailer or deleted.
pdf document
if document is password protected this parameter is required
file location
function
Looks for a font containg the provided name or id. This operation may be expensive as it iterates all pdf object searching for the font. If nothing is found null is returned
font name or font id
Copies one or more pages from another pdf to this document This function copies the entire document to the target document and then deletes pages that are not of interest. This is a much faster process, but without object garbage collection the document may result in a much larger than necessary document
PdfMemDocument to append
first page to copy (0-based)
number of pages to copy
Deletes one or more pages from the document by removing the pages reference from the pages tree. This does NOT remove the page object as the page object may be used by other objects in the document.
first page to delete (0-based)
number of pages to delete
Generated using TypeDoc
IDocument
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.