PdfCopyFields works with the fields at its disposal and if they have the same
name they will have the same value and that is to be expected. What's generally
done is to rename the fields, by adding a _1 for the first pdf _2 for the
second and so on for example. You can do it with AcroFields.renameField().
Paulo
> -----Original Message-----
> From: luy [mailto:[email protected]]
> Sent: Friday, October 23, 2009 2:19 PM
> To: [email protected]
> Subject: Re: [iText-questions] PDF merge with some fields
> still editable
>
>
> Thank you Paulo,
>
> PdfCopyFields would copy the value as well, wouldn't it? I
> tried it, and I
> got:
>
> change fields1 in pdf1,
> pdf2.field1 is updated as well - this is not what I want, I
> want pdf1.fields
> are totally unrelated to pdf2.... pdfN's fields.
>
> Some comments?
>
> --
> Lu Ying
>
>
>
>
> Paulo Soares-3 wrote:
> >
> > If you use PdfCopyFields editable fields will still be editable and
> > flattened fields will still be flattened.
> >
> > Paulo
> >
> > ----- Original Message -----
> > From: "luy" <[email protected]>
> > To: <[email protected]>
> > Sent: Thursday, October 22, 2009 9:49 PM
> > Subject: Re: [iText-questions] PDF merge with some fields
> still editable
> >
> >
> >
> > Is is possible that pdf1, pdf2... pdfN to be merged into
> pdf_merge.pdf and
> > at
> > the same time,
> >
> > pdf1.editable fields are still editable?
> >
> > It seems that when all pdf files are merged, editable fields are
> > flattened?
> > Each pdf1... pdf2 are pdf files generated with partialFormFlattening
> >
> > <pre>
> > Tried many ways but still cannot generated the merged pdf
> file with fields
> > in each pdf file is still editable.
> >
> > Need help about how itext do this:
> >
> > pdf1: 2 fields are flattened; 5 fields are editable
> > pdf2: 3 fields are flattened; 4 fields are editable
> > ...
> > pdfN: 1 field is flattened; 6 fields are editable
> >
> > result.pdf (merging pdf1, pdf2.... pdfN)
> > pdf1: still 2 fields flattened; 5 editable fields
> > pdf2: still 3 fields flattened; 4 editable fields
> > ... ...
> >
> > </pre>
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.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/