On 1/06/2011 9:01, grv1984 wrote:
Thank you for the reply.
Yes, the java script is part of XFA and XFA is removed before start filling
the PDF with the data.
Could you please show me an example or something ?
I am following this link -
If you get the advice to use an "open action", your first reflex should be:
"Can I find those words in the list of keywords?"
There's a link to that list at the bottom of every mail sent to the list.
http://itextpdf.com/themes/keywords.php
This page will lead you to:
http://itextpdf.com/themes/keyword.php?id=285
And you'll find this example: http://1t3xt.be/?12c
This is a snippet of interest:
PdfWriter <http://api.itextpdf.com/com/itextpdf/text/pdf/PdfWriter.html>
writer = stamper.getWriter();
PdfAction <http://api.itextpdf.com/com/itextpdf/text/pdf/PdfAction.html>
action =
PdfAction
<http://api.itextpdf.com/com/itextpdf/text/pdf/PdfAction.html>.javaScript(Utilities
<http://api.itextpdf.com/com/itextpdf/text/Utilities.html>.readFileToString(JS1),
writer);
writer.setOpenAction(action);
JS1 is the path to a snippet of JavaScript.
This snippet will be executed when the resulting PDF is opened.
Writing the documentation was a huge work.
You can help others finding that documentation by linking to the
documentation.
This way search engines will rank the useful pages higher than the
useless pages ;-)
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php