3 Replies Latest reply on Nov 22, 2009 1:49 PM by try67

    The purpose of javascript in Acrobat


      Is there anyway to reach the content of the pdf with javascript?

      I would like to traverese the pdf with javascript, search for tag names and replace that tag with a form field. Or even better change the text of differnt tags in the pdf depenig on values in a form field..


      Like having a button in HTML/Javascript reaching the doom tree of the HTML document and replacing text in some HTML tags.



      Is this posible our should I look at javascript like a new layer on top of the PDF with no way to reach the structure of the document without manually placing form fields??


      I have search every where for some information about this, but all I have found is that javascript cant have any access to the content of the PDF unless there is a form field (manually placed in the PDF in Acrobat).




      Do anyone have experience in this subject?