menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfVersion - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfVersion

    Specifies the available PDF versions to save the PDF document.

    Inheritance
    System.Object
    PdfVersion
    Namespace: Syncfusion.Pdf
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class PdfVersion : Enum
    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

    Version1_0

    PDF version 1.0.

    Declaration
    public const PdfVersion Version1_0
    Field Value
    Type
    PdfVersion

    Version1_1

    PDF version 1.1.

    Declaration
    public const PdfVersion Version1_1
    Field Value
    Type
    PdfVersion

    Version1_2

    PDF version 1.2.

    Declaration
    public const PdfVersion Version1_2
    Field Value
    Type
    PdfVersion

    Version1_3

    PDF version 1.3. Adobe Acrobat 4.

    Declaration
    public const PdfVersion Version1_3
    Field Value
    Type
    PdfVersion

    Version1_4

    PDF version 1.4. Adobe Acrobat 5.

    Declaration
    public const PdfVersion Version1_4
    Field Value
    Type
    PdfVersion

    Version1_5

    PDF version 1.5. Adobe Acrobat 6.

    Declaration
    public const PdfVersion Version1_5
    Field Value
    Type
    PdfVersion

    Version1_6

    PDF version 1.6. Adobe Acrobat 7.

    Declaration
    public const PdfVersion Version1_6
    Field Value
    Type
    PdfVersion

    Version1_7

    PDF version 1.7. Adobe Acrobat 8.

    Declaration
    public const PdfVersion Version1_7
    Field Value
    Type
    PdfVersion

    Version2_0

    PDF version 2.0.

    Declaration
    public const PdfVersion Version2_0
    Field Value
    Type
    PdfVersion

    See Also

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