That's a bug, it's now fixed in the SVN.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Troy
> Sent: Friday, February 15, 2008 4:16 PM
> To: [email protected]
> Subject: [iText-questions] AcroFields
> getNewPushbuttonFromField and/orreplacePushbuttonField loses Options
>
> I am populating an AcroFields form dynamically in a Java Servlet.
> It's almost perfect. The problem area is the
> VISIBLE_BUT_DOES_NOT_PRINT option is lost in the process. The
> original pdf "template" has a PushbuttonField name "Edit". What I am
> doing is getting the "Edit" button and setting the url I want to
> associate with the button so the user may edit the contents of the pdf
> on a jsp page. This works fine. The problem is that the button
> prints after I use the iText magic. He is the code I am using. The
> form variable is the instance of AcroFields passed in to the method
> that has the code below.
>
> PushbuttonField pushbuttonField =
> form.getNewPushbuttonFromField("Edit");
> PdfFormField editFormField = pushbuttonField.getField();
> editFormField.setAction(PdfAction.createSubmitForm(
> request.getContextPath() + "/someurl",
> null,
> PdfAction.SUBMIT_HTML_FORMAT));
> form.replacePushbuttonField("Edit", editFormField);
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/