How do I change/edit "Lang" entry in my PDF-s ?

10 views
Skip to first unread message

Support

unread,
Feb 21, 2013, 3:12:44 PM2/21/13
to pdfne...@googlegroups.com
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");
Reply all
Reply to author
Forward
0 new messages