Converting a PowerPoint presentation to PDF is a common requirement for many applications, whether for distributing static copies of slides or archiving presentations. With Slidize.Plugins, you can convert any presentation to PDF while maintaining full control over the export options, such as embedding fonts, adjusting compliance levels (e.g., PDF/A), and controlling hidden slides and notes.
using Slidize;
var options = new PdfConverterOptions
{
ComplianceLevel = PdfComplianceLevel.PdfA1b,
EmbedFullFonts = true
};
PresentationToPdfConverter.Process("presentation.pptx", "output.pdf", options);
Exporting slides as high-quality PNG images is useful for creating slide previews, embedding them in reports, or sharing individual slide images. Slidize.Plugins allows you to control the resolution, size, and scale of the images produced. This ensures that your output fits the exact dimensions and quality required for your project.
using Slidize;
var options = new ImageConverterOptions
{
ImageWidth = 960,
ImageHeight = 720
};
PresentationToPngConverter.Process("presentation.pptx", "output.png", options);
Converting presentations to HTML enables embedding slides in web pages, providing easy access and sharing for presentations in a browser-friendly format. The Slidize.Plugins library allows customization of the HTML export, such as scaling images, and even handling hidden slides. This is ideal for users who need to distribute presentations online while maintaining slide quality and structure.
using Slidize;
var options = new HtmlConverterOptions
{
PicturesCompression = PicturesCompressionLevel.Dpi330,
SlideImageScale = 2f
};
PresentationToHtmlConverter.Process("presentation.pptx", "output.html", options);
In addition to exporting to image and document formats, Slidize.Plugins supports converting PowerPoint presentations to a variety of presentation file formats, such as PPTX, PPSX, ODP, and more. This is especially useful for users who need to transition presentations between different platforms or software environments. The ability to convert to OpenDocument Presentation (ODP) format ensures compatibility with open-source tools, while converting to macro-enabled formats like PPTM retains functionality for presentations with embedded macros.
using Slidize;
// Convert to PPTX
PresentationConverter.Process("presentation.ppt", "output.pptx", ConvertFormat.Pptx);
// Convert to ODP
PresentationConverter.Process("presentation.pptx", "output.odp", ConvertFormat.Odp);
Merging multiple PowerPoint presentations into a single file is a valuable feature for users managing large presentations or combining content from different sources. The Slidize.Plugins package provides an easy way to merge files with minimal effort. This functionality supports combining PowerPoint presentations in both the legacy and modern formats.
using Slidize.Plugins;
string[] presentations = { "presentation1.pptx", "presentation2.pptx" };
PresentationMerger.Merge(presentations, "merged.pptx");
The library offers extensive control over how presentations are exported. You can customize the output with advanced options, such as setting the image scale, specifying compression levels for images, and choosing how notes and comments are displayed in the final output. Here's an example of exporting a presentation with custom options:
using Slidize.Plugins;
var options = new PdfConverterOptions
{
ComplianceLevel = PdfComplianceLevel.PdfA1b,
SlidesViewOptions = new NotesCommentsViewOptions
{
NotesPosition = NotesPositions.BottomFull,
CommentsPosition = CommentsPositions.Right
}
};
PresentationToPdfConverter.Convert("presentation.pptx", "output_with_notes.pdf", options);