On 22/05/2012 15:38, karthik wrote:
> http://itext-general.2136553.n4.nabble.com/file/n4649901/ImageToSpecificPageTest.java
> ImageToSpecificPageTest.java
> Attached java src code.

That's not code, that's spaghetti. Please throw it away and start anew.

I'm giving you two examples of BAD design.

1. You need to fill out templates, and then concatenate the filled out 
forms, but you're using PdfWriter instead of PdfCopy!!! Bad decision, 
proof that you didn't read the documentation!!!

2. When you do this:
List<FieldPosition> imageFieldPositions =
     stamper.getAcroFields().getFieldPositions("image");
You can easily add the image right away! It goes beyond my comprehension 
why you store the field position and add the image in a second go.

How much budget do you have? I'm almost tempted to write a working code 
sample for you. (But then again: you kind of blew that chance by proving 
you didn't read the documentation.)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to