Hello,

If I go into Adobe Acrobat, I can menupick Advanced | JavaScript | 
Document JavaScrpts... and then I can define named JavaScript functions, 
that is, I can enter a function name, and associate with it some 
JavaScript. Then if I look at the PDF at a low level, I see Root | Names 
| JavaScript | Names and then an array of even-numbered length. Odd 
numbered elements hold my function names, and even elements hold the 
associated JavaScript code.

Conversely, if I use iText (such as you'll find in Bruno's book section 
13.5.4 Adding JavaScript to a PDF document), I can put the same 
JavaScript code into the document, BUT ALL the functions' JavaScript are 
clumped together under a name of "0".

It appears that writer.addJavaScript(string code) somehow assigns the 
name of "0" unlike the names I'd like to provide.

Is there a way to defined NAMED document-level JavaScript functions?

Thanks in advance,

steve

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to