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.
-- View this message in context: http://www.nabble.com/Concatenating-multiple-PdfForms%21%21-URGENT%21%21-tp24487245p24487245.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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/
