Create HTML documentation for your Adobe Acrobat Forms JavaScripts
Web developers can easily produce on the fly #HTML #documentation. ESDocs, JSDoc, YUIDoc, documentationjs…and many others can read your js code and thanks to an appropriate #syntax output a nice HTML documentation.
While I am about to work on a new Adobe Acrobat Script for dynamic management of #PDF #forms, I wonder if I could create such a documentation with one of those tools in that end. And thing is, yes you can!
I first tried ESDoc and my sample code generated the documentation as expected. But then while I copy-pasted the code inside Acrobat, I got an interpretation error. Then I moved to JSDoc and…tadaaa it works.
This time, copy-pasting to the acrobat form item such as a button doesn't throw any interpretation error:
And then testing the item works as expected (i.e. throwing "API loaded" to the console):
A nice opportunity to code for Adobe Acrobat while getting a nicely structured documentation that you can share to colleagues or keep this for future reuse. Do you need advanced consulting on your PDF Forms ? Feel free to reach us at agileStreams.io!