Re: [iText-questions] Add image to specific pages.

2012-05-29 Thread karthik
PdfCopy with Pdf Stamper resolved the issue. Thanks, Karthik -- View this message in context: http://itext-general.2136553.n4.nabble.com/Add-image-to-specific-pages-tp4649517p4655157.html Sent from the iText - General mailing list archive at Nabble.com. ---

Re: [iText-questions] Add image to specific pages.

2012-05-22 Thread 1T3XT BVBA
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.

Re: [iText-questions] Add image to specific pages.

2012-05-22 Thread karthik
http://itext-general.2136553.n4.nabble.com/file/n4649901/ImageToSpecificPageTest.java ImageToSpecificPageTest.java Attached java src code. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Add-image-to-specific-pages-tp4649517p4649901.html Sent from the iText - General

Re: [iText-questions] Add image to specific pages.

2012-05-22 Thread 1T3XT BVBA
On 22/05/2012 11:25, karthik wrote: > I didn't find direct method to addImage in PdfStamper api. I'm getting below > error if im using stamper.getOverContent . > (Exception in thread "main" java.lang.RuntimeException: Inconsistent > writers. Are you mixing two documents?) Seems like you're mixing

Re: [iText-questions] Add image to specific pages.

2012-05-22 Thread karthik
I didn't find direct method to addImage in PdfStamper api. I'm getting below error if im using stamper.getOverContent . (Exception in thread "main" java.lang.RuntimeException: Inconsistent writers. Are you mixing two documents?) Actually I'm trying to do is create a PDF file from pdf templates an

Re: [iText-questions] Add image to specific pages.

2012-05-22 Thread 1T3XT BVBA
On 22/05/2012 9:30, karthik wrote: > I have one pdf template with 4 pages. I need to add image to first two pages. > When I tries with PdfContentByte api, its adding for all pages. I assume you use PdfStamper? If not, please switch to using PdfStamper and the problem should disappear. > PdfImpor

[iText-questions] Add image to specific pages.

2012-05-22 Thread karthik
I have one pdf template with 4 pages. I need to add image to first two pages. When I tries with PdfContentByte api, its adding for all pages. PdfImportedPage is not having full support to add image. Could anybody Please help me to find this solution. Thanks, Karthik. -- View this message in c