Hi,
I tried to remove a pushbutton from a pdf form (I don't want it in the
result file).
I dont know what i am doing wrong, but the button doesnt want to go away.
Here is the code that i am using.
reader = new PdfReader("TestForm.pdf");
FileOutputStream os = new FileOutputStream("result.pdf");
PdfStamper stamper = PdfStamper.createSignature(reader, os, '\0');
AcroFields form = stamper.getAcroFields();
...
boolean done = form.removeField("Send");
...
stamper.close();
Attached the pdf (exported from openoffice writer)
Any idea what am i doing wrong?
Thanks
Paolo
http://old.nabble.com/file/p27517383/TestForm.pdf TestForm.pdf
--
View this message in context:
http://old.nabble.com/remove-button-from-form-tp27517383p27517383.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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/