Edit PUB Metadata

Read MS Publisher file. PUB Metatada editor API for Java


Microsoft® Publisher document file format is used for creating various publication types such as newsletters, brochures, flyers, and postcards and is used in Emails and Websites. Pub files contain text as well as bitmap and vector graphics data.

Publisher Metadata is properties(information) that describe PUB documents. They are standard properties like publisher, title, last author, organization, URL, language, and other similar information. There is also data that is generated automatically after working with a file like its size or the last editing time. This useful information is stored along with the document.

Along with Conversion and Reading functionality, this PUB API solution for Java lets you edit standard metadata by means of the DocSummaryInfo and SummaryInfo classes as shown in the following code sample. You may also use the API to create your own Metadata Editor application.

Before coding Metadata, you need to integrate Java PUB Metadata API. The following example will show you how to edit the "Language" property.

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 the Java platform. You can download its latest version directly from Aspose Maven Repository and install it within your Maven-based project by adding the following configurations to the pom.xml.





View and Edit PUB Metadata on Java

The publisher Metadata reading process consists of the next steps:

  1. Upload your PUB file using createParser() Method of PubFactory Class.
  2. Parse file via parse() method of IPdfConverter Interface.

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


Support and Learning Resources