Edit PUB Metadata

Read MS Publisher file. PUB Metatada editor API for C++

 

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 C++ 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 C++ PUB Metadata API. The following example will show you how to edit the "Category" property.

View & Edit PUB Metadata on C++

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 IPubParser Interface.

Get Started with CPP PUB API

  1. Install from command line as nuget install Aspose.PUB.cpp or via Package Manager Console of Visual Studio with Install-Package Aspose.PUB.cpp.
  2. Alternatively, get the offline MSI installer or DLLs in a ZIP file from downloads .

C++ Code to Modify PUB Metadata

  

Support and Learning Resources