OpenOffice uses ODP format to represent the presentation documents. You can add charts, multimedia objects, images, transitions, and much more in the ODP presentations. In this article, you will learn how to automate the ODP to PDF conversion. Particularly, the article covers how to convert an ODP presentation to a PDF file programmatically using C#.
C# API for ODP to PDF Conversion
To convert the ODP files to PDF format, we will use Aspose.Slides for .NET. It is a powerful presentation manipulation API for PowerPoint and OpenOffice documents. You can either download API’s DLL or install it using NuGet.
PM> Install-Package Aspose.Slides.NET
Convert an ODP File to PDF
You can perform the ODP to PDF conversion in a couple of lines of code using Aspose.Slides. The following are steps to convert an ODP presentation to PDF using C#.
- Load ODP file using Presentation class.
- Call Presentation.Save(String, SaveFormat) method to convert ODP to PDF.
The following code sample shows how to convert an ODP file to PDF.
Get a Free API License
You can use Aspose.Slides for .NET without evaluation limitations by requesting a temporary license.
In this article, you have learned how to convert ODP files to PDF using C#. You can simply install Aspose.Slides for .NET and integrate the provided code in your application. Besides, you can explore more about Aspose.Slides for .NET using documentation. In addition, you can post your queries on our forum.