In previous email i send one question:

How to fill and send PDF using JSP?
Let me explain more explicit:

I have one java stand alone program something like
this:
========================================================
public class MakePDF{
    public static void main(String[] args) {
        1. Get information from data base
             select col1,...,coln from tbl where
col1=xxx
             col1
             .
             .
             .
             coln
        2. Get template ( pdf file acrobat 4 ) from
disk (step A)
           with contains n-fieles, a1...an, stamp and
merge database info versus pdf-fields (step C to step
G)
           flat the stamper and close file ( step H
and step I)

(A)            PdfReader reader = new
PdfReader("c:/.../template4a.pdf");
(B)            int n = reader.getNumberOfPages();
(C)            reader = new
PdfReader("c:/.../template4a.pdf"); 
(D)            PdfStamper stamp2 = new
PdfStamper(reader, new
FileOutputStream("c:/.../template4aflat.pdf"));       
   
(E)            AcroFields form2 =
stamp2.getAcroFields();            
(F)            form2.setField("a1", col1);
.              .
.              .
.              .
(G)            form2.setField("an", coln);
(H)            stamp2.setFormFlattening(true);
(I)            stamp2.close();
                                           } // main
                       } // class MakePDF 
========================================================
In stand alone the process work well, file
c:/.../template4aflat.pdf contains database
information and looks fine!!!
However , what can i do to achive the same result
using JSP without save file c:/.../template4aflat.pdf
to disk?
The inicial file ( acrobat template ) as over 800kb
and the final as over 820kb, do you belive necessary
change from JSP view point
to Servlets ?

Thanks for any idea!!!

Roberto Morales Juarez
oct 18, 2006

Again sorry by my english.


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to