dreamboy wrote: > The original file contains no repetition of fields. This is the file > generated when the pdf was populated with 3 records for Part I(Subject Info) > and 1 record for Part II. What is the best approach to do what is required? > I am just new to IText.
Your problem isn't that you're new to iText. Your problem is that you're new to PDF. PDF is a PDL, a Page Description Language. Using specific syntax, the layout of a page is described in a way that is very reliable: every viewer will render it the same way. PDF is NOT a Word processing format like Word where the layout of a page is created by the application used to read the document; the layout isn't fixed in Word documents; if you insert a paragraph somewhere, the content can be distributed differently over different pages. You have to look at a PDF document as if it were electronic paper. If you want to edit it, you need 'scissors and glue'. In your case, you'd have to cut the area of Part I (for instance by clipping a PdfImportedPage object as explained in the book) and place it on a new page. If you want to do this multiple times, you'll have to do the math to make everything fit. The same goes for part II. I wouldn't touch the other parts if I were you because cutting and pasting an existing PDF into a new PDF that looks good is as difficult as cutting an pasting a paper document into a new piece of paper that looks good. I hope you now understand why I'm asking you to reconsider your design. br, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
