WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfVersion - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum PdfVersion

    Specifies the available PDF versions to save the PDF document.

    Namespace: Syncfusion.Pdf
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfVersion
    Examples

    Default Value is Version1_5

    //Create a new document.
    PdfDocument doc = new PdfDocument();
    //Add a page in the PDF document.
    PdfPage page = doc.Pages.Add();    
    //Set the pdf version as Version1_7.
    doc.FileStructure.Version = PdfVersion.Version1_7;
    //Save the PDF document to disk.
    doc.Save("FileStructure.pdf");
    //Close the document.
    doc.Close(true);
    'Create a new document.
    Dim doc As PdfDocument = New PdfDocument()
    'Add a page in the PDF document.
    Dim page As PdfPage = doc.Pages.Add()
    'Set the  pdf version as Version1_7.
    doc.FileStructure.Version = PdfVersion.Version1_7
    'Save the PDF document to disk.
    doc.Save("FileStructure.pdf")
    'Close the document.
    doc.Close(True)

    Fields

    Name Description
    Version1_0

    PDF version 1.0.

    Version1_1

    PDF version 1.1.

    Version1_2

    PDF version 1.2.

    Version1_3

    PDF version 1.3. Adobe Acrobat 4.

    Version1_4

    PDF version 1.4. Adobe Acrobat 5.

    Version1_5

    PDF version 1.5. Adobe Acrobat 6.

    Version1_6

    PDF version 1.6. Adobe Acrobat 7.

    Version1_7

    PDF version 1.7. Adobe Acrobat 8.

    Version2_0

    PDF version 2.0.

    See Also
    PdfDocument
    PdfPage
    PdfFileStructure
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved