Q:
I would like to change/edit /Lang entry in my PDFs using Pdftron PDFNet. The Lang attribute can be found by using these lines :
pdftron.PDF.PDFDoc oDoc = this.LoadPdfDoc(pdfFilePath);
pdftron.SDF.DictIterator oLang = oDoc.GetRoot().Get(“Lang”);
string lang = oLang.Value().GetAsPDFText();
But I am not sure how to change this attribute.
A:
You can update Lang attribute as follows:
doc.GetRoot().PutText(“Lang”, “Klingon”);