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

Process PUB files via Java API

banner

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 https://github.com/aspose-pub/Aspose.PUB-for-Java
IPubParser parser = PubFactory.createParser(fileName);
Document document = parser.parse();

document.getDocumentSummaryInfo().setCategory("category");
document.getDocumentSummaryInfo().setCompany("company");
document.getDocumentSummaryInfo().setLanguage("language");

document.getSummaryInfo().setComments("comments");
document.getSummaryInfo().setKeywords("keywords");
document.getSummaryInfo().setLastAuthor("last author");
document.getSummaryInfo().setTitle("title");
document.getSummaryInfo().setSubject("subject");

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

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