Browse our Products
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-pub</artifactId>
<version>22.8</version>
</dependency>
compile(group: 'com.aspose', name: 'aspose-pub', version: '22.8')
<dependency org="com.aspose" name="aspose-pub" rev="22.8">
<artifact name="aspose-pub" ext="jar"/>
</dependency>
libraryDependencies += "com.aspose" % "aspose-pub" % "22.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 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