Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-24 Thread bruno
GaneshPrakhya wrote: > - I used your example (BatchFill.java) and able to write document and fill > acro fields on both pages. > OK, if you have two pages, you will need to keep track of the pages in onEndPage. >Meantime, I even tried to move to next page also, because if I say, >System.out.pri

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-24 Thread GaneshPrakhya
Hi Bruno, Finally, here is my scenario. - I have a template with two pages. On first page, I have an acro field for an image, on the second I have three acro fields. - I used your example (BatchFill.java) and able to write document and fill acro fields on both pages. - I am pasting my prog

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-24 Thread bruno
Sorry, I meant to sent this to the mailinglist and the mail with the attachment to Ganesh. bruno wrote: > Prakhya, Ganesh wrote: > >> Hi Bruno, >> >> Here is the pdf template. >> > OK, there's nothing wrong with it. > I guess you used the wrong names for the fields, > or, if you used the ColumnT

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-24 Thread GaneshPrakhya
I attached with Upload File button. I am wondering what happend??? I am able to see the link for the uploaded pdf in the Preview Message also. let me try again. ganesh. Bruno Lowagie wrote: > > GaneshPrakhya wrote: > >>I am attaching the template I just created from scratch. >> >> > Givin

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-24 Thread bruno
GaneshPrakhya wrote: >I am attaching the template I just created from scratch. > > Giving us the template for inspection is a good idea, but unfortunately you forgot to attach it... br, Bruno - Using Tomcat but need to do m

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-24 Thread GaneshPrakhya
Hi Bruno, Here is the process I created the template with acro fields. - I created an MS-Word .doc file with labels like name, company etc. - I converted the word document to PDF, I have Adobe Acrobat Professional. - I opened the pdf document I created above and added acro fields. (I suspect,

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-23 Thread bruno
GaneshPrakhya wrote: >Hi Bruno, > >Can you just let me know what's wrong in the uploaded template I created. > I don't know what you mean by 'uploaded template' (maybe you meant to add an attachment), but I am 99% sure that you created your form with LiveCycle Designer instead of with Acrobat Prof

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-23 Thread GaneshPrakhya
Hi Bruno, Can you just let me know what's wrong in the uploaded template I created. I am not able to merge data eventhough many pages are created. However, its working fine for your templates (EIDFormTemplate.pdf and SimpleRegistrationForm.pdf). Thanks, Ganesh. Bruno Lowagie wrote: > > Gane

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-23 Thread bruno
GaneshPrakhya wrote: >Hi Bruno, > >The example you suggested is working fine for me. However, the targent >document was around 4MB in size with 100 pages. I tried the samething with >same template using PDFLib, the document PDFLib created with 100 pages was >around 150KB. Is there any approach to

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-23 Thread bruno
GaneshPrakhya wrote: >Hi Bruno, > >The example you suggested is working fine for me. However, the targent >document was around 4MB in size with 100 pages. > Yes, that's what I meant when I wrote: "There are different ways to achieve this. The most efficient way, would be to retrieve the coordin

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-23 Thread GaneshPrakhya
Hi Bruno, The example you suggested is working fine for me. However, the targent document was around 4MB in size with 100 pages. I tried the samething with same template using PDFLib, the document PDFLib created with 100 pages was around 150KB. Is there any approach to reduce the size of the docu

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-23 Thread GaneshPrakhya
Hi Bruno, Excellent You are an amazing guy, my code is working and I am able to generate records with multiple pages. I will try your cacheing example also. I decided to buy your book :) Thanks a lot, Ganesh. Bruno Lowagie wrote: > > GaneshPrakhya wrote: > >>Hi Bruno, >> >>As you said

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-22 Thread bruno
GaneshPrakhya wrote: >Hi Bruno, > >As you said in the previous thread (Abhishek's): > >"There are other ways to do it, and the book will give you >another example using setField and setFieldCache, but >the procedure described above is faster because it cuts >a lot of corners. > >best regards,

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-22 Thread GaneshPrakhya
Hi Bruno, As you said in the previous thread (Abhishek's): "There are other ways to do it, and the book will give you another example using setField and setFieldCache, but the procedure described above is faster because it cuts a lot of corners. best regards, Bruno" I am exactly doing the

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-04 Thread Abhishek Srivastava
PdfReader reader = new PdfReader ("existing.pdf"); Document doc = new Document(); PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream("target.pdf")); PdfImportedPage page = writer.getImportedPage(reader, 1); throws a null pointer exception at me.   here i can see that reader is not

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-04 Thread bruno
Abhishek Srivastava wrote: > Thanks Bruno, > > could you clarify the following lines in your code snipped > > Letter letter = new Letter(); > writer.setPageEvent(letter); > > what is letter over here? Letter is the name of my main class. It extends PdfPageEventHelper. That's why it is inst

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-04 Thread Abhishek Srivastava
Thanks Bruno,   could you clarify the following lines in your code snipped   Letter letter = new Letter(); writer.setPageEvent(letter);  what is letter over here?   regards, Abhishek.  On 8/4/06, bruno <[EMAIL PROTECTED]> wrote: As promised, this is the procedure I use to create a 27.000+ page do

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-04 Thread bruno
As promised, this is the procedure I use to create a 27.000+ page document really fast using an existing 1-page PDF document with a form. My class Letter extends PdfPageEventHelper. In the onOpenDocument method 1. I read the existing PDF and retrieve the fields and their coordinates I store the

Re: [iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-04 Thread bruno
Abhishek Srivastava wrote: > Can I improve this by following any other way of generating this report? > Yes, you can. I am doing the same thing for Ghent University. We have 27.000 students and the document generation is very fast. Give me some time to distill a code sample from our closed sour

[iText-questions] Generation of Multiple Page PDF Document is slow

2006-08-04 Thread Abhishek Srivastava
Hello all,   I am generating a multiple page report using itext. each page of this report is based on a Acroform. My users want this generation to be faster. I am detailing down the steps taken by me. Kindly let me know if the report generation can be faster. I read the acroform from the DB and c