On 28/06/2011 9:30, Yevgeniy Cherniak wrote:

Hello iText group!

This is the screen from last Adobe Acrobat X Pro. How can I implement these formatting options with aid of iText?


I'd program these in JavaScript, or check if functions like AFDate_Format are available.
This works for me:

field.setAdditionalActions(PdfName.K, PdfAction.javaScript(
                                        "AFDate_KeystrokeEx( 'dd-mm-yyyy' )", 
writer));

If it doesn't work for you, maybe your viewer doesn't come with the 
implementation of the Adobe JavaScript functions (they aren't documented in the 
JS guide for exactly that reason).

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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

Reply via email to