PUB to PDF | .NET
Aspose.PUB for .NET can read and convert publication files (.pub) to PDF. The PubFactory class creates content from a .pub file for further processing by the Document class of the API.
At present, the API doesn’t support the conversion of images in a PUB file to output PDF.
PUB to PDF Conversion using C#
Portable Document Format (PDF) was introduced by Adobe to represent documents that can be read on digital devices. PUB files require Microsoft Publisher to be installed on the computer in order to open these files. Aspose.PUB for .NET lets you convert PUB files to PDF that can be opened on almost all computers without the need for Microsoft Publisher being installed. The following steps and code snippet show how to convert PUB to PDF using C# in your .NET applications.
Aspose.PUB for .NET supports converting multi-page PUB documents to PDF using the same lines of code given in this article.
- Create a C# console or WinForms project
- Load the .pub file using PubFactory class
- Convert .pub to .pdf using the ConvertToPdf method of ipdfConverter interface