> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of steve poling
> Sent: Thursday, November 09, 2006 4:11 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] same-named fields, more information
>
> Hi all,
>
> I'm sorry I didn't include this information in my original
> post on this
> subject, but I only learned this recently.
>
> I have been poking around a bit with the PDF file I generated with
> duplicated field names. To recap, I generate a form with a TextField
> named "dp" on page 1 and page 2 of a form. When I view the PDF under
> Adobe Acrobat, I see the first "dp", but the second "dp" is
> invisible.
> However, if I bring up Acrobat's thumbnail view, the
> invisible duplicate
> field can be seen (in the thumbnail, but noplace else). I can
> click on
> the field and thereby inspect its properties (they appear corrupted).
> When I fix them in the Acrobat TextField Properties dialog,
> those edits
> don't "stick" when I click OK or even when I goto another pane of the
> dialog.
>
> My boss sitting next to me running Acrobat v6.0.0, and I'm running
> v6.0.5. He ran my code and he sees slightly different stuff when he
> edits the TextField.
>
> If we do a File | Save As... in Acrobat, the missing duplicate field
> appears and it seems to work after that. He diffed the PDF before and
> after saving, but the changes (e.g. pdf v1.4 vs v1.5) were so
> extensive
> that we couldn't readily see what fixed it.
>
> Now, I may be wasting your bandwidth, b/c I'm running
> iTextSharp v3.1.1.
> I don't know if the Java iText has the same behavior. But it
> looks like
> a bug to me. Could someone point me to the right place in the
> code and
> who I should coordinate a fix with?
>
That's not a bug. Fields with the same name must be created with a
single field dictionary and several widget kids, one for each visible
instance. Create in acrobat two fields with the same name. Then, use the
Java toolbox to see the field structure, you should see two widgets with
a single parent, the field itself. This is the reason that fields with
the same size must always have the same value.
From another Bruno's answer:
Another tool that allows you to do this, is the iText toolbox.
See http://itext.ugent.be/itext-in-action/figures/png/18_04.png
You can browse the internal structure of the PDF.
If you open a page dictionary and click on 'Content',
you can see the uncompressed stream in the lower pane.
The iText toolbox can be started as a JavaWebStart application
from this URL: http://itext.ugent.be/library/itext.jnlp
Or you can download the iText.jar and execute it with
java -jar iText.jar
Paulo
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.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions