Set XMP Metadata of an existing PDF - facades

[ ]

In order to set XMP metadata in a PDF file, you need to create PdfXmpMetadata object and bind the PDF file using bindPdf(..) method. You can use setByDefaultMetadataProperties(..) method of the PdfXmpMetadata class to add different properties. Finally, call the save(…) method of PdfXmpMetadata class.

The following code snippet shows you how to add XMP metadata in a PDF file.