Women in Technology

Hear us Roar



Article:
  Dynamically Creating PDFs in a Web Application
Subject:   Using iText
Date:   2005-09-20 02:11:25
From:   Menon
Hi,

In one of our on-going projects, we are trying to use iText for generating dynamic PDF documents.


1. The requirement is to generate a shipping invoice which has two pages.

2. The data is coming from two tables called Invoice and Invoice_Item.

3.Each invoice contains multiple items, description of which runs into multiple lines.

4. What we have done is create the invoice template first as a PDF document and then add text boxes in the appropriate places and then fetch the values from the tables and fill up the text boxes.

5. However, we ran into trouble when we tried to populate the items in the invoice. As mentioned earlier, each invoice has multiple items in them. So we cannot fix the number of text boxes to be added to the invoice. If we use just one text box and teh try to loop thru the items in an invoice, the descriptions are all overwirtten by the last item fetched.


The question is how to solve this issue ? What we need to do is get the items one below the other in the invoice. Each item has an item code, description, unit, unit rate, quantity and value.


Any suggestions ?


Thanks and regards


Rajendran Menon

Project Manager

Kott Software.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Using iText
    2005-12-14 09:54:34  Praths [View]

    Hi there!

    We are trying to dynamically create PDF files based on the data from different sources. I have no idea of using iText until now. Could you please provide us with a some documentation or a sample as to how to generate the template and also use the template and fill in the values at run time. Any help in this regard is highly appreciated.

    Thanks!
    Prathyusha