I would like to modify/remove the description information (metadata) from a PDF document.
Most of the time, this information is stored in the optional Info dictionary in the trailer. You can either modify it using our DocInfo API like so:
PDFDoc doc = new PDFDoc(@"test.pdf"); var docinfo = doc.GetDocInfo();
Please see the API for the available methods:
If you would like to remove this information, you can just erase the whole dictionary with our API like so:
PDFDoc doc = new PDFDoc(@"test.pdf"); doc.GetTrailer().Erase("Info");
It is also likely you will need to remove the XMP information, as it also can contain some metadata like so: