PUB to PDF | Java
Contents
[
Hide
]
Aspose.PUB for Java 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 Java
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 Java 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 in your Java applications.
Aspose.PUB for Java supports converting multi-page PUB documents to PDF using the same lines of code given in this article.
- Create a Java console or WinForms project
- Load the .pub file using PubFactory class
- Convert .pub to .pdf using the ConvertToPdf method of ipdfConverter interface