menu

WPF

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

    Show / Hide Table of Contents

    Class PresentationToPdfConverterSettings

    Represents the conversion Settings for Presentation to PDF Converter.

    Inheritance
    System.Object
    PresentationToPdfConverterSettings
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.PresentationToPdfConverter
    Assembly: Syncfusion.PresentationToPdfConverter.Base.dll
    Syntax
    public class PresentationToPdfConverterSettings

    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 EnablePortableRendering 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

    EnablePortableRendering

    Indicates whether to enable portable rendering or not.

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

    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

    RecreateNestedMetafile

    Gets or sets a value that indicates whether to regenerate the nested EMF images present in the Presentation document during PDF conversion. Default value isfalse.

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

    True if it is necessary to regenerate the nested EMF images present in the Presentation document during PDF conversion; otherwise false.

    Examples
    //Load the PowerPoint document
    IPresentation pptxDoc = Presentation.Open("Sample.pptx");
    //Initialize the conversion settings 
    PresentationToPdfConverterSettings pdfConverterSettings = new PresentationToPdfConverterSettings();
    //Sets RecreateNestedMetafile property to true to Recreate the Nested Metafile automatically
    pdfConverterSettings.RecreateNestedMetafile = 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
    'Sets RecreateNestedMetafile property to true to Recreate the Nested Metafile automatically
    pdfConverterSettings.RecreateNestedMetafile = 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

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved