PdfDocument ClassTerminal Works - PDF Printing.Net Library
Represents a PDF document.
Inheritance Hierarchy

SystemObject
  PdfEdit.PdfPdfItem
    PdfEdit.PdfPdfObject
      PdfEdit.PdfPdfDocument

Namespace: PdfEdit.Pdf
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax

public sealed class PdfDocument : PdfObject, 
	IDisposable

The PdfDocument type exposes the following members.

Constructors

  NameDescription
Public methodPdfDocument
Creates a new PDF document in memory. To open an existing PDF file, use the PdfReader class.
Public methodPdfDocument(Stream)
Creates a new PDF document using the specified stream. The stream won't be used until the document is closed, at that time the document is saved automatically. Do not call Save() for documents created with this constructor, just call Close(). To open an existing PDF file, use the PdfReader class.
Public methodPdfDocument(String)
Creates a new PDF document with the specified file name. The file is immediately created and keeps locked until the document is closed, at that time the document is saved automatically. Do not call Save() for documents created with this constructor, just call Close(). To open an existing PDF file and import it, use the PdfReader class.
Top
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
Properties

  NameDescription
Public propertyAcroForm
Get the AcroForm dictionary.
Public propertyCustomValues
This function is intended to be undocumented.
Public propertyFileSize
Gets the file size of the document.
Public propertyFullPath
Gets the full qualified file name if the document was read form a file, or an empty string otherwise.
Public propertyGuid
Gets a Guid that uniquely identifies this instance of PdfDocument.
Public propertyInfo
Gets information about the document.
Public propertyInternals
Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.
Public propertyIsImported
Returns a value indicating whether the document was newly created or opened from an existing document. Returns true if the document was opened with the PdfReader.Open function, false otherwise.
Public propertyIsIndirect
Indicates whether the object is an indirect object.
(Inherited from PdfObject.)
Public propertyIsReadOnly
Returns a value indicating whether the document is read only or can be modified.
Public propertyLanguage
Gets or sets the default language of the document.
Public propertyOptions
Gets the document options used for saving the document.
Public propertyOutlines
Gets the root of the outline (or bookmark) tree.
Public propertyOwner
Gets the PdfDocument this object belongs to.
(Inherited from PdfObject.)
Public propertyPageCount
Gets the number of pages in the document.
Public propertyPageLayout
Gets or sets a value specifying the page layout to be used when the document is opened.
Public propertyPageMode
Gets or sets a value specifying how the document should be displayed when opened.
Public propertyPages
Get the pages dictionary.
Public propertyReference
Gets the indirect reference of this object. If the value is null, this object is a direct object.
(Inherited from PdfObject.)
Public propertySecurityHandler
Gets the security handler.
Public propertySecuritySettings
Gets the security settings of this document.
Public propertySettings
Gets PDF specific document settings.
Public propertyTag
Gets or sets a user defined object that contains arbitrary information associated with this document. The tag is not used by PDFEdit.
Public propertyVersion
Gets or sets the PDF version number. Return value 14 e.g. means PDF 1.4 / Acrobat 5 etc.
Public propertyViewerPreferences
Gets the viewer preferences of this document.
Top
See Also

Reference