Xceed PDF Library for .NET Documentation v1.0
Xceed.PdfLibrary.NET Assembly / Xceed.PdfLibrary.NET Namespace / PdfDocument Class
In This Topic
    PdfDocument Class
    In This Topic
    A PDF document. This class cannot be inherited.
    Object Model
    PdfDocument ClassAttachmentCollection ClassAttachment ClassPdfDocument ClassFontCollection ClassFont ClassHyperlinkCollection ClassHyperlink ClassDocumentInformations ClassPdfDocument ClassPageCollection ClassPage ClassPageSettings ClassWatermarkCollection ClassWatermark Class
    Syntax
    public sealed class PdfDocument 
    Inheritance Hierarchy

    System.Object
       Xceed.PdfLibrary.NET.PdfDocument

    Public Properties
     NameDescription
    Public PropertyGets the attachments.  
    Public PropertyGets the bookmarks.  
    Public PropertyGets the fonts.  
    Public PropertyHolds all the FormFields from the PDF Document.  
    Public PropertyGets the hyperlinks.  
    Public PropertyGets the informations.  
    Public PropertyGets the name.  
    Public PropertyGets the pages.  
    Public Property Gets or sets the default page settings for new pages added to the document. When set to null, default values will be used (A4 portrait format). When set, if the document already has a first page, its PageSettings will be updated accordingly.  
    Public PropertyGets the version.  
    Public PropertyGets the watermarks.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Overloaded. Creates a new PdfDocument.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Loads the given file.  
    Public MethodSaves this instance.  
    Public MethodOverloaded. Saves as.  
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also