Where can I find documentation on running Javascript inside a PDF?
I have never added javascript action inside a PDF. However, I have done quite a lot of web development using javascript. I have a few questions for someone familiar with javascript inside a PDF.
NitroPDF and Adobe Acrobat definitely support javascript in PDF files. Is there a standard for the various objects that exist and function to control pdf through javascript? All that I have found so far was from Adobe. Anywhere else seems to be accessing Adobe documents. Is there a standard, or is Adobe a de facto standard?
Also, do all PDFs support javascript actions?
The best documents on using javascript inside a pdf document that I could find were obtained from Adobe - Adobe :: Acrobat Javascript Scripting Guide .
NitroPDF has this link - NitroPDF :: Javascript in PDF files , but basically just says it supports what Adobe has.
I also found this link from Scribus - Scribus :: How to improve your PDF forms using JavaScript , but that includes a few small snippets of code. Nothing super useful.
Adobe has documents on how you can set breakpoints, etc. for javascript using their IDE. Is it possible to run javascript in pdf using a different IDE and have breakpoints, etc. ?? It would be great to find something as cool as Firebug .
Note:
Please do not respond how to manipulate a PDF file that is loaded in a web browser. It's about running javascript from a PDF document. I am trying to explore the features available with javascript in a PDF document. In particular, I can use the quickpdflibrary functions to add javascript functionality to existing documents.
Edit
Another useful link: Development with Acrobat Javascript . Apparently, js in PDFs is often called AcroJS or Acrobat JavaScript.
javascript pdf documentation acrobat pdf-manipulation
Sam 09 Feb '12 at 22:26 2012-02-09 22:26
source share