PDF File Metadata
In order to get file specific information of a PDF file, you first need to call the get_Info() of Document class. Once the DocumentInfo object is retrieved, you can get the values of the individual properties. Furthermore, you can also set the properties by using respective methods of DocumentInfo class. Following code snippet demonstrate, how to get/set PDF File information using Aspose.PDF for C++:
Aspose.PDF for C++ allows you to access a PDF file’s XMP metadata as well as set it. To get/set a PDF file’s metadata:
- Create a Document object and open the input PDF file.
- Get/Set the file’s metadata using respective methods.
The following code snippet shows you how to get/set metadata from the PDF file.