PptToPdfConverter class
Leave feedback
On this page
Provides a simple API to convert Microsoft PowerPoint PPT presentations to PDF format using the GroupDocs.Conversion LowCode interface.
This converter is part of the LowCode API, which allows you to perform PPT to PDF conversions with minimal code and configuration.
Features:
- Convert PPT files to PDF with high fidelity
- Support for password-protected PPT 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 PptToPdfConverter : Converter<PresentationLoadOptions, PdfConvertOptions>
name | description |
---|---|
PptToPdfConverter(…) | Initializes a new instance of the PptToPdfConverter class for converting PPT presentations to PDF. (2 constructors) |
Convert(…) | Converts the loaded PPT 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 PPT file
var converter = new PptToPdfConverter("legacy-presentation.ppt");
// Convert PPT to PDF
converter.Convert("legacy-presentation.pdf");
Example - Advanced conversion with options:
var converter = new PptToPdfConverter("protected.ppt", options =>
{
options.Password = "12345";
options.HideComments = true;
});
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.