The Syncfusion .NET PowerPoint Library (presentation) offers powerful APIs for programmatically converting PowerPoint files to PDF with minimal code in C#, without Microsoft PowerPoint or interop dependencies. Additionally, it facilitates converting PowerPoints to PDF/A format for archival and tagged PDFs compliant with Section 508 (PDF/UA).
This example code shows how to convert a PowerPoint to PDF format using the Syncfusion .NET PowerPoint Library with just a few lines of code in C#.
using Syncfusion.Pdf;
using Syncfusion.Presentation;
using Syncfusion.PresentationRenderer;
//Open the PowerPoint file stream
using (FileStream fileStream = new FileStream("Template.pptx", FileMode.Open))
{
//Load an existing PowerPoint Presentation
using (IPresentation pptxDoc = Presentation.Open(fileStream))
{
//Convert PowerPoint into PDF document
using (PdfDocument pdfDocument = PresentationToPdfConverter.Convert(pptxDoc))
{
//Save the PDF file to file system
using (FileStream outputStream = new FileStream("PPTXToPDF.pdf", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
{
pdfDocument.Save(outputStream);
}
}
}
}
Handouts are often printed to display more than one slide in a PDF page. The PowerPoint Library lets you select the number of slides per page to print to a PDF document.
Print notes pages as a PDF file with a slide thumbnail. This is useful when creating handouts of key points for an audience or preparing for presentations.
This feature allows you to include or skip hidden slides when converting a PowerPoint presentation to PDF, giving you control over what content gets exported.
Convert PowerPoint presentations into accessible, 508-compliant PDF/UA documents, ensuring proper accessibility for users with disabilities.
Configure PDF conversion to comply with various conformance levels, including long-term archiving (PDF/A) and other standardized requirements.
Embed fonts in a PDF to avoid font-related issues on different machines. You can choose to embed only used characters (reducing file size) or all characters.
Specify alternate fonts for missing ones during the conversion process, ensuring consistent appearance even when fonts are unavailable.
Configure fallback fonts for Unicode text to handle missing glyphs in specified fonts, ensuring correct rendering of all text.
Discover resources from our knowledge base to enhance your efficiency in PowerPoint-to-PDF conversion:
Knowledge base
Knowledge base
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Product Updates
Technical Support
The .NET PowerPoint Library supports converting only PPTX, PPTM, POTX, and POTM formats to PDF.
Yes, you can perform PowerPoint-to-PDF conversion in Linux and different cloud platforms like Azure, Amazon Web Services, and Google Cloud Platform using the .NET PowerPoint Library.
If required fonts aren’t installed, PowerPoint Library uses alternatives, possibly causing differences in generated PDFs. Refer to the documentation to resolve this issue.
Yes, you can programmatically open password-protected PowerPoint files and convert them to PDF using the .NET PowerPoint Library.
The .NET PowerPoint Library supports converting PowerPoint files to tagged PDFs, ensuring Section 508 compliance for users relying on assistive technologies.
You can access it through the Syncfusion.PresentationRenderer.Net.Core NuGet package. Detailed code samples and tutorial videos are available in the documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.