Hi,

I have Reader Enabled AcroForm with button that I modify to set XFDF submit
action.

Setting button action works fine if I use PdfStamper like
'PdfStamper(reader, os)' but all fields are disabled. Form is fine if I use
removeUsageRights.
If I use PDFStamper like 'PdfStamper(reader, os, '\0', true)', button action
is not working. I also tried setting reset form action, and it is not
working too.

I set action like:

AcroFields.Item buttonItem = stamper.getAcroFields().getFieldItem("Button");
PdfDictionary widget = buttonItem.getWidget(0);
widget.put(PdfName.A, PdfAction.createResetForm(null,
PdfAction.RESET_EXCLUDE));

Am I missing something? Is there a way to keep Reader Enabling while
modifying button action? Basically with 'PdfStamper(reader, os, '\0',
true)', action is not working on forms that were not Reader Enabled too.

Thanks,
Dajana
-- 
View this message in context: 
http://www.nabble.com/Modifying-button-action-on-Reader-Enabled-AcroForm-tp25802420p25802420.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to