javascript functions in PDF
- From: Bruno Lowagie <bruno (at) lowagie.com>
- Date: Wed, 01 Feb 2006 17:59:27 +0100
Sanjeev wrote:
Hi all.
I am creating a PDF document dynamically and need to add validations
for different datatypes. Is there a concept of javascript functions in
PDF?
Yes. http://partners.adobe.com/public/developer/pdf/topic_js.html
Just like we have a set of functions in .js file and we include it in
HTML to do client side validations, do we have anything similar in PDF?
Yes.
And if so, does ITEXT provides APIs to achieve it?
Yes.
You can set JavaScript at document level (PdfWriter.addJavaScript(...)) and
add JavaScript actions to (widget) annotations
(setAction(PdfAction.javaScript(...))).
Any help is highly appreciated.
You'll have to consult the Javadocs.
br,
Bruno
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions