I need to mantain same look and feel for the output flat pdf. And this template is also not fixed. These templates will be provided by the front end users and I need to create a flate pdf file with same look and feel as in template and fetch the data from database. Is it possible using PdfWriter?
Thanks, Nitin Gulati Quoting Paulo Soares <[EMAIL PROTECTED]>: > Forget about using the template to fill values. Use the template to get > the field values and create a new pdf with PdfWriter. > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 15, 2005 1:32 PM > > To: Paulo Soares > > Cc: [EMAIL PROTECTED]; > > [email protected] > > Subject: RE: [iText-questions] PDF Generation using PDF > > Formanddatafromdatabase > > > > Hi Paulo, > > > > Thanks for taking all the pain. > > Please find the template attached with the mail. > > > > It has few form fields. these form fields have the value as > > tablename.columname > > in the database table. > > > > There can be multiple companies and each company will have > > multiple Employees. > > I have to create the same template for each company and > > multiple rows (one row > > for each employee (which > > can span over number of pages)) in the employees table. I > > have to add these > > templates to the final pdf file. > > > > Hope I am clear in explaining my needs. > > > > Thanks, > > Nitin Gulati > > Quoting Paulo Soares <[EMAIL PROTECTED]>: > > > > > Send me one of those template and I'll give you more directions. > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, March 15, 2005 12:28 PM > > > > To: Paulo Soares > > > > Cc: [email protected] > > > > Subject: RE: [iText-questions] PDF Generation using PDF Form > > > > anddatafromdatabase > > > > > > > > I am totally new to iText (as you might have guessed by now, > > > > seeing the kind of > > > > questions that i post). Can you please give me a headstart > > > > (i.e. the sample > > > > code showing how to use AcroFields and PdfStamper for the > > > > kind of application i > > > > need). > > > > I know I am asking for too much, but it will definately > > help me out. > > > > > > > > Thanks, > > > > Nitin Gulati > > > > > > > > Quoting Paulo Soares <[EMAIL PROTECTED]>: > > > > > > > > > It can be done but not with forms. Use the form just to get > > > > the field > > > > > positions and column names but fill the values with > > > > PdfContentByte. See > > > > > AcroFields and PdfStamper. > > > > > > > > > > > -----Original Message----- > > > > > > From: [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] On > > > > > > Behalf Of [EMAIL PROTECTED] > > > > > > Sent: Tuesday, March 15, 2005 4:40 AM > > > > > > To: Paulo Soares > > > > > > Cc: [email protected] > > > > > > Subject: Re: [iText-questions] PDF Generation using PDF Form > > > > > > and datafromdatabase > > > > > > > > > > > > Thanks Paulo, > > > > > > But I need to create the table dynamically, as in the form > > > > > > (template) there will > > > > > > be just 2 rows for that table. One header and second a row > > > > > > with form controls > > > > > > having the value specifying the database columname from where > > > > > > that value has to > > > > > > be fetched. > > > > > > Can I craete the table dynamically. > > > > > > Please suggest. It would be great if I could get the staring > > > > > > poin (in terms of > > > > > > code) on which can build upon. > > > > > > > > > > > > Thanks, > > > > > > Nitin Gulati > > > > > > > > > > > > Quoting Paulo Soares <[EMAIL PROTECTED]>: > > > > > > > > > > > > > The easiest way is to dispose the fields as a table. > > > > > > > If you have a 10x10 table you'll need 100 fields. > > > > > > > > > > > > > > --- "[EMAIL PROTECTED]" > > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > > > > > I need to create a pdf using the template (pdf fprm) > > > > > > > > that is provided by the > > > > > > > > user from front end. my output flat file needs to be > > > > > > > > same as the template. But > > > > > > > > it should be faltenned, moreover In the template > > > > > > > > there can be a table with the > > > > > > > > columns like > > > > > > > > > > > > > > > > Name Address City State Country Zip > > > > > > > > > > > > > > > > in one row and it's values like > > > > > > > > > > > > > > > > USER.USERNAME USER.ADDRESS USER.CITY USER.STATE > > > > > > > > USER.COUNTRY USER.ZIP > > > > > > > > > > > > > > > > in the form fields in the next row. > > > > > > > > > > > > > > > > Say there are 100 records in the USER table. I need > > > > > > > > to fetch all the 100 records > > > > > > > > from the database and need to create a new file > > > > > > > > which matches the format of the > > > > > > > > template(form) and displays all the 100 records. > > > > > > > > (Note in the template there is > > > > > > > > the table with one header row and one more row to > > > > > > > > map the header and the data > > > > > > > > that is to be displayed under that header.) > > > > > > > > > > > > > > > > Is this possible using iText. > > > > > > > > Please advise. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Nitin Gulati > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > SF email is sponsored by - The IT Product Guide > > > > > > > > Read honest & candid reviews on hundreds of IT > > > > > > > > Products from real users. > > > > > > > > Discover which products truly live up to the hype. > > > > > > > > Start reading now. > > > > > > > > > > > > > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > > > > > > _______________________________________________ > > > > > > > > iText-questions mailing list > > > > > > > > [email protected] > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > > > > Do you Yahoo!? > > > > > > > Yahoo! Small Business - Try our new resources site! > > > > > > > http://smallbusiness.yahoo.com/resources/ > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > SF email is sponsored by - The IT Product Guide > > > > > > Read honest & candid reviews on hundreds of IT Products from > > > > > > real users. > > > > > > Discover which products truly live up to the hype. Start > > > > reading now. > > > > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > > > > _______________________________________________ > > > > > > iText-questions mailing list > > > > > > [email protected] > > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
