Class PresentationToPdfConverterSettings
Represents the conversion Settings for Presentation to PDF Converter.
Inheritance
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
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. |
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. |