PdfDocument MethodsTerminal Works - PDF Printing.Net Library

The PdfDocument type exposes the following members.

Methods

  NameDescription
Public methodAddPage
Creates a new page and adds it to this document. Depending of the IsMetric property of the current region the page size is set to A4 or Letter respectively. If this size is not appropriate it should be changed before any drawing operations are performed on the page.
Public methodAddPage(PdfPage)
Adds the specified page to this document. If the page is from an external document, it is imported to this document. In this case the returned page is not the same object as the specified one.
Public methodCanSave
Determines whether the document can be saved.
Public methodClone
Creates a copy of this object. The clone does not belong to a document, i.e. its owner and its iref are null.
(Inherited from PdfObject.)
Public methodClose
Closes this instance.
Public methodDispose
Disposes all references to this document stored in other documents. This function should be called for documents you finished importing pages from. Calling Dispose is technically not necessary but useful for earlier reclaiming memory of documents you do not need anymore.
Public methodEquals (Inherited from Object.)
Public methodFinishPageImport
Must be called after adding pages to a document to fix up page-references in imported Acro-Fields.
Public methodGetAllObjectIDs
Gets an array of all object identifiers. For debugging purposes only.
Public methodGetAllReferences
Gets an array of all cross references ordered ascendingly by their object identifier.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInsertPage(Int32)
Creates a new page and inserts it in this document at the specified position.
Public methodInsertPage(Int32, PdfPage)
Inserts the specified page in this document. If the page is from an external document, it is imported to this document. In this case the returned page is not the same object as the specified one.
Public methodSave(Stream)
Saves the document to the specified stream. The stream is not closed by this function.
Public methodSave(String)
Saves the document to the specified path. If a file already exists, it will be overwritten.
Public methodSave(Stream, Boolean)
Saves the document to the specified stream.
Public methodSaveIncremental(Stream)
Saves the document incrementally to the specified stream. This preserves existing digital signatures. Only works for imported documents.
Public methodSaveIncremental(String)
Saves the document incrementally, appending changes to the original PDF. This preserves existing digital signatures. Only works for imported documents.
Public methodSetLicenseInfo
Sets the license information.
Public methodSignWithCertificate
Digitally sign document with the certificate. Multiple signatures are supported - call this method multiple times with different certificates.
Public methodToString (Inherited from Object.)
Top
See Also

Reference