Problem with merging PDF forms
- From: Luis Catalino <luiscatalino (at) gmail.com>
- Date: Sun, 29 Jan 2006 21:45:23 +0000
Thanks for your post. You are right.
Luis Catalino
2006/1/27, Paulo Soares <psoares (at) consiste.pt>:
Fields with the same name but different type will vanish. You should
rename the fields.
> -----Original Message-----
> From: itext-questions-admin (at) lists.sourceforge.net
> [mailto:itext-questions-admin (at) lists.sourceforge.net] On
> Behalf Of Luis Catalino
> Sent: Friday, January 27, 2006 4:52 PM
> To:
itext-questions (at) lists.sourceforge.net
> Subject: [iText-questions] Problem with merging PDF forms
>
> I have a problem with merging PDF forms. I'm using the
> example CopyPdfFields.java, which uses the class
> PdfCopyFields.java. I send the class for you to see. I just
> added the lines:
>
> writer.addDocument(reader);
>
if (reader.getJavaScript() != null)
>
writer.addJavaScript(reader.getJavaScript());
>
> I do this to merge to document _javascript_ of the various forms.
>
> When I merge using this, the final document doesn't have all
> the fields from the forms. Some are missing!! Does anyone
> knows why this happens? Some fields in different forms have
> the same name. Can this be the problem?
>
> Thanks,
>
> Luis Catalino
>
>