Manipulate XMP Metadata
Effortlessly add, edit, and retrieve metadata from EPS files, putting you in complete control of your document’s information. Elevate the content of EPS files to a new level with Aspose.Page Solution for C++!
The XMP metadata is a collection of properties to describe a file. It is written in XML format. The metadata includes information about the file's content, identification details that differentiate it from other files, and other data related to the file's creation, modification, and upload history. Additionally, it records details about the users who contributed to the file's creation, editing, and uploading.
Unlock the power of your EPS files with our C++ API solution! Seamless integration with XMP metadata that gives you complete control over your EPS documents. Whether you’re managing digital assets, enhancing copyright information, or optimizing your creative workflow, our API simplifies the process, ensuring precision and efficiency. Improve your metadata handling capabilities and gain deeper insights into your EPS files. Experience the seamless integration with XMP metadata using our C++ API solution. Buy the solution today or just get a free trial to discover the functionality of adding, editing, and retrieving metadata from EPS files! For more information and examples on working with XMP metadata, visit the Aspose.Page API documentation on GitHub . Try also our XMP Metadata Editor web app, to see how the functionality may be used.
To run the code example you will need:
Aspose.Page for C++ API which is a feature-rich, powerful and easy to use document manipulation and conversion API for C++ platform.
You can download its latest version directly, just open NuGet package manager, and search for Aspose.Page.Cpp and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.Page.Cpp
Add XMP metadata to an EPS file with C++
To insert XMP metadata to EPS you will need to use entities of the XmpMetadata Class. Take the next steps:
- Set the path to the directory where the document is located.
- Initialize an input stream for the EPS file.
- Use the PsDocument Class to create a PS file from the input stream.
- Retrieve the XMP metadata by calling the GetXmpMetadata() Method. If the EPS file doesn’t contain XMP metadata we get a new one filled with values from PS metadata comments.
- Save the changed EPS document by calling the Save() method.
Add XMP metadata
Change XMP metadata of an EPS file with C++
To add array items to XMP metadata you will again need to use the same entities and take similar steps. The additional step requires using the SetArrayItem or AddArrayItem()
Change XMP metadata
EPS What is EPS File Format
EPS (EPSF) or Encapsulated PostScript File Format is the format that is actually a PS program that describes what would a single page look like. It is actually limited PS plus particular notes that help encapsulate PostScript graphics to another document. EPS perfectly supports vector graphics or combined vector-raster graphics. The peculiarity of the format is that as soon as it is imported into a document, it cannot be edited anymore. That is one of the reasons to convert this format to the one you are able to work with.