 |
PowerPointToPdf Class |
PowerPoint to Pdf Converter. This class offers the API needed to convert a PowerPoint presentation
(pptx, pptm, potx, potm, ppsx, ppsm) to pdf - its slides, notes pages or handouts.
Inheritance HierarchySystemObject
SelectPdf.UniversalPowerPointToPdf
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic class PowerPointToPdf
Public Class PowerPointToPdf
The PowerPointToPdf type exposes the following members.
Constructors| | Name | Description |
|---|
 | PowerPointToPdf |
Initializes an instance of the PowerPoint to Pdf converter.
|
Top
Properties| | Name | Description |
|---|
 | ConversionResult |
Gets a reference to an object that offers information about the result of the last
conversion; null before the first one.
|
 | Footer |
Gets a reference to an object that controls the properties of the custom footer of the
generated pdf document. Displayed when DisplayFooter is true.
|
 | Header |
Gets a reference to an object that controls the properties of the custom header of the
generated pdf document. Displayed when DisplayHeader is true.
|
 | Options |
Gets a reference to an object that controls the conversion process and the generated pdf
document properties.
|
Top
Methods| | Name | Description |
|---|
 | ConvertBytes |
Converts a presentation held in memory to pdf.
|
 | ConvertFile |
Converts the presentation at the given path to pdf. The engine reads pptx, pptm, potx, potm, ppsx and ppsm files.
|
 | ConvertStream |
Converts the presentation read from a stream to pdf.
|
Top
Remarks
The result of the conversion is a
PdfDocument object that can be further modified,
saved to memory or into a file on the disk. The conversion runs in-process; no engine is
launched.
Options,
Header and
Footer mirror the html
and Word converters', so a document setup written for
HtmlToPdf applies here unchanged.
ExamplePowerPointToPdf converter = new PowerPointToPdf();
converter.Options.MarginTop = 20;
PdfDocument doc = converter.ConvertFile("deck.pptx");
doc.Save("deck.pdf");
doc.Close();Dim converter As New PowerPointToPdf()
converter.Options.MarginTop = 20
Dim doc As PdfDocument = converter.ConvertFile("deck.pptx")
doc.Save("deck.pdf")
doc.Close()
See Also