Remove XMP Metadata on PDF/A
问题 Is there a way wherein we can remove XMP metadata on a PDF/A Document without removing the PDF/A standardization? I found that using PdfReader reader = new PdfReader(src); PdfDictionary dict = reader.getCatalog(); dict.remove(PdfName.METADATA); dict.remove(PdfName.PROPERTIES); reader.removeUnusedObjects(); Removes both XMP and PDF/A. Is there a way to remove the XMP while retaining the standard or reintroducing PDF/A into the processed document? Thanks. 回答1: You can't remove the XMP