How do I modify the description information from a PDF?

Question:
I would like to modify/remove the description information (metadata) from a PDF document.

Answer:
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:
https://www.pdftron.com/api/PDFTronSDK/cpp/classpdftron_1_1_p_d_f_1_1_p_d_f_doc_info.html

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:
doc.GetRoot().Erase("Metadata");