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

PptToPdfConverter class

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 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 PptToPdfConverter : Converter<PresentationLoadOptions, PdfConvertOptions>

Public Members

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

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

See Also