PUB to PPT PPTX C#

Microsoft Publisher, PUB, files are often used for large scale printing of documents like brochures, booklets, posters, etc. In certain situations, we may need to convert a PUB file to a Presentation file as a PPT or PPTX file. In this article, we will show you how to convert the publisher to PPT or PPTX in C#.

This article covers the following topics:

  1. C# API to Convert Publisher to PPT
  2. Convert Publisher to PPT in C#
  3. Convert PUB to PPTX Online
  4. Free Learning Resources

C# API to Convert Publisher to PPT – Free Download

Converting the publisher PUB files into PPT or PPTX format is a two-step process. In the first step, we will convert a PUB file to a PDF file and then it will be converted to a PPT or PPTX format. We will use Aspose.PUB for .NET to convert a PUB file into PDF format and Aspose.PDF for .NET to convert a PDF into PPT or PPTX.

Please download the DLLs of the APIs or install them using the following NuGet commands:

PM> Install-Package Aspose.PDF  
PM> Install-Package Aspose.PUB

Convert Publisher to PPT or PPTX in C#

We can convert Microsoft Publisher’s PUB file into PPT or PPTX format by following the steps below:

  1. Create a MemoryStream object to save intermediate PDF file.
  2. Parse the source PUB file using IPubParser.Parse() method.
  3. Convert the PUB file to PDF and save the output in the MemoryStream.
  4. Load the PDF file and initialize the PptxSaveOptions class instance.
  5. Save the output PPT or PPTX file.

The following code sample shows how to convert a PUB file to a PPT or PPTX PowerPoint Presentation programmatically in C#.

Convert PUB to PPTX Online

Please try the PUB to PPTX web app developed using this API.

Get Free API License

You can evaluate the API without any limitations by requesting a free temporary license.

PUB to PPT – Learning Resources

Besides converting Publisher PUB files into PPT or PPTX format, explore various other features of the library using the following resources:

Conclusion

In this article, we have learned how to convert Microsoft Publisher’s PUB file to a PowerPoint Presentation as a PPT or PPTX file programmatically in C#. By following the steps outlined in this article, you can easy develop your own PUB to PPTX converter application. In case of any ambiguity, please feel free to contact us on our free support forum.

See Also