Hi Vankat, oh, just take a closer look at the java-Docs. I build that application with iText 0.97 until now the API of this has been changed. So it worked that way in the past, for now the API seems to be different, I just looked at the new javadoc and found many differences.
The tutorial at iText-Page are very old, but Paulo has some nice and newer stuff on his Early Access Page. Hopefully you will find an Example that will meet your requirements. If not, please come back, I have to solve this problem for our project too, but for now I'm running out of time in an other project. Best Regards Dirk SomeObject.getInstance Ihre Mail vom Thu, 11 Nov 2004 15:08:53-0600(Venkat Pabbati[Venkat Pabbati<[EMAIL PROTECTED]>]): > Hello Dirk > Your response sounds promising. Can you send me an example if you have > something. The code what you have written below is little confusing for > me, as > we cannot instantiate PdfTemplate(constructor is private) and also it > doesn't > take 3 parameters. Please respond back as soon as possible. > Thanks > Venkat > Dirk Wellmann <dw <at> pdsoft.de> writes: > > > > > Hi Venkat, > > > > I used the Template of the Document. Just make an Instance of a > PdfWriter > with a > > new empty PDF-Document, add the existing one via a PdfReader as > > DirectContentUnder, then you can add your own Content in the normal way, > > using addParagraph .... : > > > > com.lowagie.text.pdf.PdfReader pReader = null; > > com.lowagie.text.pdf.PdfWriter pWriter = null; > > > > pReader = new pdfTemplate(this.getDokumentIdent (), this.getFormName (), > > true); > > pWriter = com.lowagie.text.pdf.PdfWriter.getInstance (pdfDoc, new > > FileOutputStream (getFile ())); > > > > // get DirectContentUnder from your created Writer > > PdfContentByte cb = pWriter.getDirectContentUnder(); > > > > // Read the first Page of your exsisting Document > > PdfImportedPage p1 = pWriter.getImportedPage (pReader,1); > > > > // add it as Template in the Backround of your new Document > > cb.addTemplate(p1,0,0); > > > > // now add your own stuff > > ..... > > > > this can be done for every page you can read with the pReader > > > > > > Your Mail from Wed, 10 Nov 2004 16:08:08-0600(Venkat > > Pabbati[Venkat Pabbati<vpabbati <at> theocc.com>]): > > > Hello > > > I have a requirement in my curret project that there is an existing > pdf > > > document, I will have to add few lines and an image to the start of > the > > > exisitng document. Also will have to add some text at the end of the > > > document. If I use 'PdfCopy' I am having the content added is shown in > one > > > different page at the start. But we want it to be part of the same > page of > > > the rest of the document. Please give me solution, we need it > urgently. > > > > > > Thank you very much in advance. > > > Venkat > > > > > > people from making use of one's contributions to computer science. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
