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.
Directory | Description |
---|---|
Examples | A collection of Java examples that help you learn the product features. |
- Read Microsoft Publisher (PUB) files for conversion to PDF format.
- Working with Metadata of PUB files.
Microsoft Publisher: PUB
Fixed Layout: PDF
- 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
Aspose hosts all Java APIs 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.
// 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");
Home | Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License