Look for setFieldCache in the mailing list archives.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of sombra
> Sent: Wednesday, May 31, 2006 8:16 AM
> To: [email protected]
> Subject: [iText-questions] create more than 1 page of the 
> same pdf, after use stamp ( to fill some fields). Output in a 
> hmtl page.
> 
> Hi,
>   i have a document in pdf, in which i hava to fill some 
> fields (using the 
> class pdfstamper), and show in a html page. I have already done it. 
>  But now i have complicated, i would like to generete whith 
> the same document 
> more than one page. I have to read the information from a 
> database (to fill the 
> fields) of the document, and join whith the next values of 
> the database (as 
> much pages as registers in the database). And, i have to show 
> it in the same 
> way.
> I NEED SOME CLUES..... ANY IDEA (i don't want to create 
> phisical files)
> 
> MY WRONG CODE
>             ByteArrayOutputStream baos = new ByteArrayOutputStream ();
>             ByteArrayOutputStream pdffinal = new 
> ByteArrayOutputStream ();
>             PdfCopyFields copy = new PdfCopyFields (pdffinal); 
> // test to try to do it.....
>             for (int i=0;i < 3;i++)
>               {
>               baos = null;
>               PdfReader ficheropdf = new PdfReader("c:\\Partes.pdf"); 
>               PdfStamper stamp = new PdfStamper(ficheropdf,baos);
>               stamp.setFullCompression();
>                 AcroFields form = stamp.getAcroFields();
>                 form.setField("NIF","NIF--234" + i);
>                 stamp.close(); 
>                 copy.addDocument(ficheropdf);
>               }
>             copy.close();
>             ServletOutputStream       out = 
> response.getOutputStream();
>             response.setContentLength(pdffinal.size());         
>             pdffinal.writeTo(out);
>             out.flush();
> 
> 
> 
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost 
> and Risk!
> Fully trained technicians. The highest number of Red Hat 
> certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&;
> dat=121642
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to