Click or drag to resize
PdfDocument Class
Represents a PDF document.
Inheritance Hierarchy

Namespace: XsPDF.Pdf
Assembly: XsPDF (in XsPDF.dll) Version: 6.11.0.1333 (6.11.0.1333)
Syntax
public sealed class PdfDocument : PdfObject, 
        IDisposable

The PdfDocument type exposes the following members.

Constructors
  Name Description
Public method PdfDocument
Creates a new PDF document in memory. To open an existing PDF file, use the PdfReader class.
Public method PdfDocument(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 method PdfDocument(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
  Name Description
Public method AddPage
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 method AddPage(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 method CanSave
Determines whether the document can be saved.
Public method Clone
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 method Close
Closes this instance.
Public methodStatic member ConvertToPdf(IEnumerable Image )
Generates a PDF document from the collection of enumerations with each image representing a new page.
Public methodStatic member ConvertToPdf(Image)
Generates a PDF page from the image.
Public methodStatic member ConvertToPdf(IEnumerable Image , PageSize)
Generates a PDF document from the collection of enumerations with each image representing a new page.
Public methodStatic member ConvertToPdf(Image, PageSize)
Generates a PDF page from the image.
Public method Dispose
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 method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method InsertPage(Int32)
Creates a new page and inserts it in this document at the specified position.
Public method InsertPage(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 method Save(Stream)
Saves the document to the specified stream. The stream is not closed by this function. (Older versions of XsPDF closes the stream. That was not very useful.)
Public method Save(String)
Saves the document to the specified path. If a file already exists, it will be overwritten.
Public method Save(Stream, Boolean)
Saves the document to the specified stream.
Public method ToString (Inherited from Object.)
Top
Extension Methods
  Name Description
Public Extension Method Get
A helper for a PdfItem that will automatically lookup / fetch the corresponding PdfReference item if the item is a PdfReference. If the item is not a PdfItem, then the original item is returned.
(Defined by PdfItemExtensions.)
Public Extension Method GetImages
Get's all of the images from the specified document.
(Defined by PdfDocumentExtensions.)
Public Extension Method IsArray
Checks to see if the PdfItem can be represented as a PdfArray
(Defined by PdfItemExtensions.)
Public Extension Method IsBoolean
Checks to see if the PdfItem can be represented as a PdfBoolean
(Defined by PdfItemExtensions.)
Public Extension Method IsDate
Checks to see if the PdfItem can be represented as a PdfDate
(Defined by PdfItemExtensions.)
Public Extension Method IsLiteral
Checks to see if the PdfItem can be represented as a PdfLiteral
(Defined by PdfItemExtensions.)
Public Extension Method IsName
Checks to see if the PdfItem can be represented as a PdfName
(Defined by PdfItemExtensions.)
Public Extension Method IsNull
Checks to see if the PdfItem can be represented as a PdfNull
(Defined by PdfItemExtensions.)
Public Extension Method IsNumber
Checks to see if the PdfItem can be represented as a PdfNumber
(Defined by PdfItemExtensions.)
Public Extension Method IsObject
Checks to see if the PdfItem can be represented as a PdfObject
(Defined by PdfItemExtensions.)
Public Extension Method IsRectangle
Checks to see if the PdfItem can be represented as a PdfRectangle
(Defined by PdfItemExtensions.)
Public Extension Method IsReference
Checks to see if the PdfItem can be represented as a PdfReference
(Defined by PdfItemExtensions.)
Public Extension Method IsString
Checks to see if the PdfItem can be represented as a PdfString
(Defined by PdfItemExtensions.)
Top
Properties
  Name Description
Public property AcroForm
Get the AcroForm dictionary.
Public property CustomValues
This function is intended to be undocumented.
Public property FileSize
Gets the file size of the document.
Public property FullPath
Gets the full qualified file name if the document was read form a file, or an empty string otherwise.
Public property Guid
Gets a Guid that uniquely identifies this instance of PdfDocument.
Public property Info
Gets information about the document.
Public property Internals
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 property IsImported
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 property IsIndirect
Indicates whether the object is an indirect object.
(Inherited from PdfObject.)
Public property IsReadOnly
Returns a value indicating whether the document is read only or can be modified.
Public property Language
Gets or sets the default language of the document.
Public property Options
Gets the document options used for saving the document.
Public property Outlines
Gets the root of the outline (or bookmark) tree.
Public property Owner
Gets the PdfDocument this object belongs to.
(Inherited from PdfObject.)
Public property PageCount
Gets the number of pages in the document.
Public property PageLayout
Gets or sets a value specifying the page layout to be used when the document is opened.
Public property PageMode
Gets or sets a value specifying how the document should be displayed when opened.
Public property Pages
Get the pages dictionary.
Public property Reference
Gets the indirect reference of this object. If the value is null, this object is a direct object.
(Inherited from PdfObject.)
Public property SecurityHandler
Gets the security handler.
Public property SecuritySettings
Gets the security settings of this document.
Public property Settings
Gets PDF specific document settings.
Public property Tag
Gets or sets a user defined object that contains arbitrary information associated with this document. The tag is not used by XsPDF.
Public property Version
Gets or sets the PDF version number. Return value 14 e.g. means PDF 1.4 / Acrobat 5 etc.
Public property ViewerPreferences
Gets the viewer preferences of this document.
Top
See Also

C# PDF online guide

IMPERIAL TRACTORS MACHINERY IMPERIAL TRACTORS MACHINERY GROUP LLC Imperial Tractors Machinery Group LLC IMPERIAL TRACTORS MACHINERY GROUP LLC IMPERIAL TRACTORS MACHINERY 920 Cerise Rd, Billings, MT 59101 IMPERIAL TRACTORS MACHINERY GROUP LLC 920 Cerise Rd, Billings, MT 59101 IMPERIAL TRACTORS MACHINERY GROUP LLC IMPERIAL TRACTORS MACHINERY IMPERIAL TRACTORS MACHINERY 920 Cerise Rd, Billings, MT 59101 IMPERIAL TRACTORS MACHINERY Imperial Tractors Machinery Group LLC 920 Cerise Rd, Billings, MT 59101 casino brain https://institute.com.ua/elektroshokery-yak-vybraty-naykrashchyy-variant-dlya-samooborony-u-2025-roci https://lifeinvest.com.ua/yak-pravylno-zaryadyty-elektroshoker-pokrokovyy-posibnyknosti https://i-medic.com.ua/yaki-elektroshokery-mozhna-kupuvaty-v-ukrayini-posibnyk-z-vyboru-ta-zakonnosti https://tehnoprice.in.ua/klyuchovi-kryteriyi-vyboru-elektroshokera-dlya-samozakhystu-posibnyk-ta-porady https://brightwallpapers.com.ua/yak-vidriznyty-oryhinalnyy-elektroshoker-vid-pidroblenoho-porady-ta-rekomendatsiyi how to check balance in hafilat card plinko casino game CK222 gk222 casino 555rr bet plinko game 3k777 cv666 app vs555 casino plinko