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