View & Edit PUB Metadata via Java

Native Java Library to View & Edit PUB Metadata on Windows, Linux and Mac OS X

How to Edit PUB Metadata Using Java

In order to Edit PUB Metadata, 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 Maven and install it within your Maven-based project by adding the following configurations to the pom.xml.

Repository

<repository>
    <id>snapshots</id>
    <name>repo</name>
    <url>http://repository.aspose.com/repo/</url>
</repository>

Dependency

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-pub</artifactId>
    <version>20.8</version>
</dependency>

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. Edit metadata e.g Language using setLanguage method of DocSummaryInfo class

System Requirements

Aspose.PUB for Java is supported on all major operating systems. Just make sure that you have the following prerequisites.

- J2SE 8.0 (1.8) or above.

Java Code to Update PUB Metadata