PptxToPdfConverter class
Leave feedback
On this page
Provides a simple API to convert Microsoft PowerPoint PPTX presentations to PDF format using the GroupDocs.Conversion LowCode interface.
This converter is part of the LowCode API, which allows you to perform PPTX to PDF conversions with minimal code and configuration.
Features:
- Convert PPTX files to PDF with high fidelity
- Support for password-protected PPTX documents
- Customize loading and conversion via
PresentationLoadOptions
andPdfConvertOptions
- Stream and file-based conversion support
Code Examples:
- C# examples: groupdocs-conversion-lowcode-examples-csharp
- VB.NET examples: groupdocs-conversion-lowcode-examples-vbnet
- F# examples: groupdocs-conversion-lowcode-examples-fsharp
See the LowCode developer guide for more details: https://docs.groupdocs.net/conversion/developer-guide/
public sealed class PptxToPdfConverter : Converter<PresentationLoadOptions, PdfConvertOptions>
name | description |
---|---|
PptxToPdfConverter(…) | Initializes a new instance of the PptxToPdfConverter class for converting PPTX presentations to PDF. (2 constructors) |
Convert(…) | Converts the loaded PPTX document to PDF and saves it to the specified file path. (2 methods) |
Example - Basic conversion:
using GroupDocs.Conversion.LowCode;
// Load license keys
var publicKey = Environment.GetEnvironmentVariable("GD_PUBLIC_KEY");
var privateKey = Environment.GetEnvironmentVariable("GD_PRIVATE_KEY");
// Apply the license
License.Set(publicKey, privateKey);
// Create a converter for the PPTX file
var converter = new PptxToPdfConverter("presentation.pptx");
// Convert PPTX to PDF
converter.Convert("presentation.pdf");
Example - Advanced conversion with options:
var converter = new PptxToPdfConverter("protected.pptx", options =>
{
options.Password = "12345";
});
converter.Convert("converted.pdf", convertOptions =>
{
convertOptions.Pages = new List<int> { 1, 2, 3 };
convertOptions.Dpi = 300;
});
- namespace GroupDocs.Conversion.LowCode
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.