Browse our Products

                                                  compile(group: 'com.aspose', name: 'aspose-pub', version: '20.8')
<dependency org="com.aspose" name="aspose-pub" rev="20.8">
    <artifact name="aspose-pub" ext="jar"/>
libraryDependencies += "com.aspose" % "aspose-pub" % "20.8"

Process PUB files via Java API


Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.PUB for Java is a Java API that can read, manipulate and convert Microsoft Publisher (.pub) files to PDF. You can use the API in your Java applications to work with .pub files without worrying about the underlying filie format. The API can be used in Java desktop as well as web applications using JSP. The API is light, easy to use and simplifies your application with simple lines of code in your application.

PUB Java API Features

  • Read Microsoft Publisher (PUB) files for conversion to PDF format.
  • Working with Metadata of PUB files.

Read PUB Files

Microsoft Publisher: PUB

Save PUB As

Fixed Layout: PDF

Supported Environments

  • Microsoft Windows: Windows Desktop & Server (x86, x64)
  • macOS: Mac OS X
  • Linux: Ubuntu, CentOS, and others
  • Java Versions: J2SE 8.0 (1.8) or above

Get Started

Aspose.PUB Java APIs are hosted at the Aspose Repository. You can easily use Aspose.PUB for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.PUB for Java from Aspose Repository documentation page.

Edit Metadata of Microsoft Publisher Files using Java

// For complete examples and data files, please go to
IPubParser parser = PubFactory.createParser(fileName);
Document document = parser.parse();


document.getSummaryInfo().setLastAuthor("last author");

Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License

VersionRelease Date
22.8September 1, 2022
20.8August 7, 2020
aspose-pub-20.8-javadoc.jarjavadoc157.98 KB
aspose-pub-20.8.jar68.27 MB
aspose-pub-20.8.pom446 bytes