Tom Bevan wrote:
> Is this expected behaviour?

That's not what I expected.

As a matter of fact, I tested this on Adobe Reader 8
and Adobe Reader 6, and they both behave differently.
In the PDF Reference 1.7 I read that each 'terminal field'
should have type and at least one widget annotation
(as opposed to what I wrote on p499).

Wow! I think you have found an error in the book;
I'm 99% sure that with some versions of Adobe Reader
my advise about using a PdfFormField without a widget
annotation actually works, but as it's not the way
it's described in the PDF Reference, you should strike
my first suggestion and follow the alternative:
use a hidden textbox.

> I'll probably work around the problem by inserting the hidden variable into
> the HTTP post URL.

I have tested the following code, and it works:

TextField hidden =
   new TextField(writer, new Rectangle(0, 0), "processinstance");
hidden.setVisibility(TextField.HIDDEN);
hidden.setText("1234567890");
submission.addKid(hidden.getTextField());

This is the third error people have found in my book:
the first one is on page 109 (it's easily overlooked),
the second one on page 126 (a detail), and now you found
one on page 499. I'll add it to my errata.

best regards,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to