1. Home
  2. /
  3. GroupDocs.Conversion.LowCode
  4. /
  5. GroupDocs.Conversion.LowCode
  6. /
  7. PptxToPdfConverter

PptxToPdfConverter class

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 and PdfConvertOptions
  • Stream and file-based conversion support

Code Examples:

See the LowCode developer guide for more details: https://docs.groupdocs.net/conversion/developer-guide/

public sealed class PptxToPdfConverter : Converter<PresentationLoadOptions, PdfConvertOptions>

Public Members

namedescription
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)

Remarks

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;
});

See Also