Lior:
 
The best way for me to explain this is to say that, to control page breaks, repeating headers, etc. you have to keep track of you position on the page and how much available page you have left after each row output.  You will notice in my code that I sent you that before I output a row to a page, I check to see how much page is available.  If there isn't much available, I create a new page, output the table header, and then output my row.  This may sound like a lot of work but once you get used to it, it works extremely well and I like having exact control over where everything goes.  I hope you have as much success with it as I have.
 
As far as helping you, I am more than glad to.  I wouldn't be where I am now in my development if it weren't for the people on this list.  I'm just trying to return the favor.
Take care,
Kenny
----- Original Message -----
Sent: Wednesday, January 29, 2003 10:59 AM
Subject: Re: [iText-questions] Dynamic creation of PDF with JSP

Kenny,

Also, how can I determine the end of a page on the PDF. So if my report is in a table that is bordered, and I want to be able to maintain the look of the report inside the table that when the page ends there is a new line that closes off the table, and in the next page the report is continued in another table...man I'm confusing myself.

The reports that I'm generating are for stock trades for brokers, so I don't know excatly how long the report can be...it can be very short, or it can be incredibly long with the data for one broker flowing on and on and on. So I want to be able to know how to contain the  data in a nice format, so the person who's reviewing it can read it and so that it maintains the look and feel of the website...etc.

I hope I'm making sense, and this seems to be a big undertaking. So any help would be wonderful.

Thanks,
Lior

 "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]> wrote:

Lior:
 
Sounds like you want to do what I did.  I was generating reports via JSP that were pretty long.  I didn't like the fact that there were no page breaks or repeat headers and stuff via the HTML so I decided to try iText.  And I want you to know that I really like it but it did take a bit of development since now all my reports are generated via servlets instead of JSP.  But if you want nice looking reports with total control over the layout, iText is the way to go.
 
As far as variables, I've got tons of them in my servlets that generate the PDF and it works great.
 
Hope this info helps...let me know if you need more info.
Kenny
----- Original Message -----
To: iText
Sent: Wednesday, January 29, 2003 9:04 AM
Subject: [iText-questions] Dynamic creation of PDF with JSP

Hello everyone,

I was just wondering about th whole process of generating a PDF on the fly. I have a report that is generated, and it's pretty big, and I want the output, instead of going to a JSP page, to go to the PDF file so it can be send over to a client.

I was wondering how to go about doing that, since I'm not quite sure about how to work in variables into the PDF. Any help would be greatly appreciated.

Thanks,

Lior

 



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to