You can send me a copy ;)

-----Original Message-----
From: Bruno Lowagie (iText) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 30 January 2007 11:49 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Inserting Hidden fields into a PDF
document

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=DEVDE
V
_______________________________________________
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/




This email and any files transmitted with it may be confidential and are 
intended solely for the use of the individual or entity to whom they are 
addressed. This email may contain personal information of individuals, and be 
subject to Commonwealth and/or State privacy laws in Australia. This email is 
also subject to copyright. If you are not the intended recipient, you must not 
read, print, store, copy, forward or use this email for any reason, in 
accordance with privacy and copyright laws. If you have received this email in 
error, please notify the sender by return email, and delete this email from 
your inbox. 

-------------------------------------------------------------------------
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