Convert PUB to PDF

Publisher to PDF Converter. Java API Conversion functionality.


Microsoft® Publisher document file format is used for creating various publication types such as newsletters, brochures, flyers, and postcards and is used in Emails and Websites. Pub files contain text as well as bitmap and vector graphics data.

As all the other Microsoft® products Publisher application is not free itself. And as the file of the format can be opened only by this program to share the results of your work sometimes you will have to convert a PUB file to a more well-spread format. The most popular of all is PUB to PDF conversion. By now, this format is supported by all modern devices and can even be opened in a browser without installing any additional software. Here is the PUB to PDF conversion functionality for Java. This library can also be used for creating your own project.

Before running the conversion you need to integrate Java PUB to PDF Converter API, which works not only with single-page documents but also supports multipage .pub files.

How to Convert PUB to PDF Using Java

In order to convert PUB to PDF, we’ll use Aspose.PUB for Java API which is a feature-rich, powerful and easy to use conversion API for Java platform. You can download its latest version directly from Aspose Maven Repository and install it within your Maven-based project by adding the following configurations to the pom.xml.





PUB to PDF Conversion on Java

  1. Load PUB file using createParser() Method of PubFactory Class.
  2. Parse file using parse() Method of IPdfConverter Interface.
  3. Convert PUB to PDF using convertToPdf() Method of IPdfConverter Interface.

System Requirements

  1. Aspose.PUB for Java is supported on all major operating systems. Just make sure that you have the following prerequisites.
  2. J2SE 8.0 (1.8) or above.

Java Code for PUB to PDF Conversion

    // Load PUB file
    IPubParser parser = PubFactory.createParser(fileName);
    // Parse file 
    Document doc = parser.parse();
    // Convert PUB to PDF, "output.pdf");
PUB to PDF Conversion is a required step in PUB to any other format Conversion. After it, the transformed file could be converted into the needed format.

You can also try PUB to PDF cross-platform application. It has a very simple interface and the process will take only a few seconds.

The solution allows you: Transform multiple Publisher files, convert PUB to PDF, and save converted documents on your device.


1. Can I convert PUB to PDF?

For such a purpose you only need to convert PUB to PDF programmatically using this .NET API or transform your files online by means of the web Converter application.

2. Can I open a Publisher File in Word?

To convert PUB to WORD use the web Converter application.

3. Is the functionality free?

The cross-platform Converters are free when for the API solution you can get a free Trial and then buy the product if needed.


Support and Learning Resources