Hi Everybody,
 
I am encouraged by various discussion groups on  the web to look into iText. I have following problem, for which I need a solution. Do you think I can use iText to solve it?
 
Problem
 
My client needs to print a report their "registered users" details from the web. Currently The function is like this
 
Flow
i) Clerk selects a number of users from a list in a jsp and submits.
ii) The servlet processes the request and gives all the information to print.jsp
iii) Print.jsp uses java and html tags to build a html document dynamically.
(Apart from text data, the document contains gif images)
iv) Print.jsp has a document.print() command which prints the document.
 
This far is simple. But as I have told, the document will contain details of several "registered users" and detail for each "registered user" may take two or three pages. So client wants header showing "user" name so that pages don't get mixed.
 
In the code I can add header on the first page for each user (for loop), but I cannot identify the page breaks.
 
Currently I am calculating the number of lines by a very tedious process. When the number of lines exceeds a certain number, I am forcing a page break.
 
I have tried to use htmldoc and fop. But htmldoc needs cgi perl coding while my client wont allow me any coding outside jsp and servlet/java.
 
The FOP, I found needs a xml parser which is not a freeware. I am not in position to ask the client to buy anything until I have a solution .
 
My Question
 
Can I write a jsp(or something similar) which can dynamically create a pdf.
 
Thanking you in advance
 
With Regards
Neil banerjee
 
 
 
 


Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to