menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class PresentationToPdfConverterSettings

    Represents the conversion Settings for Presentation to PDF Converter.

    Inheritance
    System.Object
    PresentationToPdfConverterSettings
    Namespace: Syncfusion.PresentationRenderer
    Assembly: Syncfusion.PresentationRenderer.Portable.dll
    Syntax
    public class PresentationToPdfConverterSettings : Object

    Constructors

    PresentationToPdfConverterSettings()

    Intialize the new instance of presentation to pdfConverter settings.

    Declaration
    public PresentationToPdfConverterSettings()

    Properties

    AutoTag

    Gets or sets a value indicates whether the converted PDF document is tagged or not. Default value is false

    Declaration
    public bool AutoTag { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    Setting this property as true will automatically enable property.

    Examples
    //Load the PowerPoint document
    IPresentation pptxDoc = Presentation.Open("Sample.pptx");
    //Initialize the conversion settings 
    PresentationToPdfConverterSettings pdfConverterSettings = new PresentationToPdfConverterSettings();
    //Include structured tags in exported PDF document. 
    pdfConverterSettings.AutoTag = true; 
    //Convert the PowerPoint document to PDF 
    PdfDocument pdfDoc = PresentationToPdfConverter.Convert(pptxDoc, pdfConverterSettings);
    //  Save the converted PDF file. 
    pdfDoc.Save("Sample.pdf"); 
    //Close the presentation instance 
    pptxDoc.Close(); 
    //Close the PDF instance
    pdfDoc.Close();
    'Load the PowerPoint document. 
    Dim pptxDoc As IPresentation = Presentation.Open("Sample.pptx")
    'Initialize the conversion settings. 
    Dim pdfConverterSettings As PresentationToPdfConverterSettings = New PresentationToPdfConverterSettings
    'Include structured tags in exported PDF document. 
    pdfConverterSettings.AutoTag = true
    'Convert the PowerPoint document to PDF .
    Dim pdfDoc As PdfDocument = PresentationToPdfConverter.Convert(pptxDoc, pdfConverterSettings)
    'Save the converted PDF file. 
    pdfDoc.Save("Sample.pdf")
    'Close the presentation instance 
    pptxDoc.Close
    'Close the PDF instance
    pdfDoc.Close

    EmbedCompleteFonts

    Gets or sets a value indicating whether to embed the complete font information in the converted PDF document. Default value is false

    Declaration
    public bool EmbedCompleteFonts { get; set; }
    Property Value
    Type Description
    System.Boolean

    True: if need to embed the complete font information in the converted PDF document; otherwise, False.

    Remarks

    EmbedFonts

    Gets or sets a value indicating whether to embed fonts in the converted PDF document. Default value is false

    Declaration
    public bool EmbedFonts { get; set; }
    Property Value
    Type Description
    System.Boolean

    True: if need to embed fonts in the converted PDF document; otherwise, False.

    Remarks

    ImageQuality

    Gets or sets the quality. The value indicates in percentage, max value represents best quality and min value represents best compression.

    Declaration
    public int ImageQuality { get; set; }
    Property Value
    Type
    System.Int32
    Remarks

    The value indicates in percentage, max value represents best quality and min value represents best compression

    ImageResolution

    Sets the image resolution to the image, which are embedded in the PowerPoint presentation.

    Declaration
    public int ImageResolution { set; }
    Property Value
    Type
    System.Int32

    OptimizeIdenticalImages

    Gets or Sets a value indicating whether to optimize the memory usage for the identical (duplicate) images in PPTX to PDF conversion and converted PDF document.

    Declaration
    public bool OptimizeIdenticalImages { get; set; }
    Property Value
    Type
    System.Boolean

    PdfConformanceLevel

    Gets or sets the PDF document's Conformance-level.

    Declaration
    public PdfConformanceLevel PdfConformanceLevel { get; set; }
    Property Value
    Type Description
    PdfConformanceLevel

    The PdfConformanceLevel of the PDF document.

    PreserveFormFields

    Gets or sets a value indicating whether to preserve shapes in a PowerPoint presentation as editable PDF text form fields. The default value is false.

    Declaration
    public bool PreserveFormFields { get; set; }
    Property Value
    Type Description
    System.Boolean

    true – Shapes with names starting with "FormField_" are converted into editable text form fields in the output PDF during PowerPoint to PDF conversion. false – Shapes remain unchanged as regular shapes in the output PDF.

    Remarks

    When set to true, any shape (e.g., Oval, Triangle) with a name starting with "FormField_" is converted into a rectangular text form field in the output PDF. The prefix "FormField_" is case-insensitive and must be at the beginning of the shape name.

    PublishOptions

    Gets or sets the available publishing options to export the Presentation to PDF document.

    Declaration
    public PublishOptions PublishOptions { get; set; }
    Property Value
    Type
    PublishOptions

    ShowHiddenSlides

    Indicates whether to export hidden slides or not.

    Declaration
    public bool ShowHiddenSlides { get; set; }
    Property Value
    Type
    System.Boolean

    SlidesPerPage

    Gets or Sets the slides per page

    Declaration
    public SlidesPerPage SlidesPerPage { get; set; }
    Property Value
    Type
    SlidesPerPage

    Warning

    Gets or sets the warning that describes the unsupported elements found while converting the specified Presentation to PDF.

    Declaration
    public IWarning Warning { get; set; }
    Property Value
    Type Description
    IWarning

    The warning.

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