This class offers the necessary API to create a PDF document from a PowerPoint presentation (pptx, pptm, potx,
potm, ppsx, ppsm) - its slides, notes pages or handouts - read from a file, a stream or an array of bytes.
Inheritance HierarchySystemObject
ExpertPdf.Anywhere.PowerPointToPdfPdfConverter
Namespace: ExpertPdf.Anywhere.PowerPointToPdfAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic class PdfConverter
Public Class PdfConverter
The PdfConverter type exposes the following members.
Constructors
Properties| | Name | Description |
|---|
 | AccessibilityStandard |
Gets or sets the accessibility standard the generated document declares. The default value is
None.
|
 | EmbedCompleteFonts |
Gets or sets whether whole fonts are embedded rather than the characters used. The default value is false.
|
 | Language |
Gets or sets the natural language of the document content (for example "en-US"). Required for accessible
(PDF/UA) output.
|
 | LicenseKey |
Gets or sets the license key
|
 | OptimizeIdenticalImages |
Gets or sets whether identical pictures are stored once. The default value is true.
|
 | PageRanges |
Gets or sets the pages of the converted presentation to keep, for example "1,3-5" or "2-" (1-based). The
default is every page.
|
 | PageSetup |
Gets or sets the page size the slides are put on. The default is Document:
the presentation's slide size.
|
 | Password |
Gets or sets the password that opens an encrypted presentation.
|
 | PdfDocumentInfo |
Gets a reference to an object to set the document information of the generated PDF document: title, author,
subject, keywords and creation date.
|
 | PdfDocumentOptions |
Gets a reference to an object to control the generated PDF document options. The page size, orientation and
margins are used when PageSetup is Options; the margins also make
room for the header and footer.
|
 | PdfFooterOptions |
Gets a reference to an object to control the generated PDF document footer options
|
 | PdfHeaderOptions |
Gets a reference to an object to control the generated PDF document header options
|
 | PdfSecurityOptions |
Gets a reference to an object to set the security of the generated PDF document: a password to open it, an
owner password, the permissions and the encryption. The document is encrypted only when one of these options
is changed from its default.
|
 | PdfStandardSubset |
Gets or sets the PDF standard of the generated document. The default is
Full.
|
 | PreserveFormFields |
Gets or sets whether the presentation's form fields become PDF form fields. The default value is false.
|
 | Publish |
Gets or sets what is published. The default is Slides. An accessible document
(an accessibility standard or a PDF/A level A) is published from the slides only.
|
 | ShowHiddenSlides |
Gets or sets whether the hidden slides are converted too. The default value is false.
|
 | SlidesPerHandout |
Gets or sets how many slides a handout page holds: 1, 2, 3, 4, 6 or 9. The default value is 6.
|
Top
Methods
RemarksThe slides are drawn by the PowerPoint engine. By default (PageSetup =
Document) every PDF page is a slide at the presentation's slide size; with
Options every slide is scaled onto the page size, orientation and margins of
PdfDocumentOptions. Publish chooses slides, notes pages or handouts.
Links stay live, and the PDF/A, PDF/X and PDF/UA levels, the security options and the document information
apply as they do for the other converters.
ExamplePdfConverter pdfConverter = new PdfConverter();
pdfConverter.PdfDocumentOptions.ShowFooter = true;
pdfConverter.PdfFooterOptions.ShowPageNumber = true;
pdfConverter.SavePdfFromPowerPointFileToFile("deck.pptx", "deck.pdf");Dim pdfConverter As New PdfConverter()
pdfConverter.PdfDocumentOptions.ShowFooter = True
pdfConverter.PdfFooterOptions.ShowPageNumber = True
pdfConverter.SavePdfFromPowerPointFileToFile("deck.pptx", "deck.pdf")
See Also