Only Adobe tools can do what you want.
Paulo
> -----Original Message-----
> From: Maky2507 [mailto:[email protected]]
> Sent: Tuesday, July 14, 2009 9:47 PM
> To: [email protected]
> Subject: [iText-questions] Concatenating multiple PdfForms!! URGENT!!
>
>
> Hi all,
>
> I have multiple PDF Forms created using Adobe Live Cycle manager. The
> requirement is to read the forms, stamp the form with the
> user provided
> values. And then concatenate the forms to build a single pdf.
> In some of my forms I have a text field, which can flow to
> next page. For
> this I have set flowed as the subform property and the text
> field's Y-axis
> expand to fit as true.
> I tried two approaches:
>
> Approach 1: Using PdfCopyFields
> 1. I create a PdfReader and PdfStamper to read and stamp the forms.
> 2. Create an instance of PdfCopyFields(FileoutputStrem fos)
> 3. Keep calling PdfCopyFields.addDocument(PdfReader) for each form's
> PdfReader
> 4. Close the PdfCopyFields
> When I am doing this, the TextField within flowed form and
> whose Y-axis
> expand to fit is set does not exapnd to next page. Instead
> the text field is
> shown within the first page with a + mark.
>
> Approach 2: Programmatically reading and adding fields
> 1. Create a PDFWriter on the output file.
> 2. Read and stamp the forms and return all the fields (using
> AcroForm.getFields())
> 3. Read each field's position and other details like field
> name and value,
> create the same element in the output PdfWriter
> In this approach I need to manipulate and calculate the
> coordinaties of each
> of the field, as the positions of each field in the output pdf will be
> relative to its previously added field (which could be from a
> different
> form).
> Here also I see the same problem, where in the text field
> does not flow to
> the next page, instead it shows some lines and then shows a + mark.
>
> Please let me know if you have any idea on this or have
> implemented this
> kind of requirement in your projects.
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.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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/