PDF Metadata
View and edit built-in and custom properties of PDF documents with free cross-platform Apps and APIs
How to Set PDF Metadata Using Aspose.PDF Library
To Set Metadata from PDF files, we’ll use Aspose.PDF API, which is a feature-rich, powerful, and easy-to-use document manipulation API. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console. Aspose.PDF allows you to set file-specific information for a PDF, information like author, creation date, subject, and title.
Steps to Set Metadata of PDF
You need Aspose.PDF library to try the code in your environment.
- Load the PDF with an instance of Document.
- Set the values of the properties.
- Save the updated document using the Document class Save method.