PUB to PDF | Java

Contents
[ ]

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.

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.

  1. Create a Java console or WinForms project
  2. Load the .pub file using PubFactory class
  3. Convert .pub to .pdf using the ConvertToPdf method of ipdfConverter interface