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
Determines whether the specified Object is equal to the current Object.
(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
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(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 methodSetLicenseInfo
Sets the license information.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also

Reference