sfjsljfl lkfjdsfjksl wrote: > Hello Iam not expert in IText, however I saw this api very usefull and > could be interresting for my project. I have database, I will have to > generate charts, via the open source api JFreechart, into servlet and > JSP, for example each jsp has its own table and chart, after in the > final step, I merge all into a jsp. My wishes is to generate a pdf with > the last jsp containing all informations that I want. Is IText is > capable ? if yes have you any examples. Simply I need examples of jsp or > servlet containing several charts, and any other informations, and > transform all into pdf. Thx for any help.
You are mixing different things. First of all: why JSP? Images and PDF are binary files. Take any book about JSP and you'll read: JSP IS NOT SUITABLE FOR THE CREATION OF BINARIES. If you're not an expert: write a standalone application first. Then adapt this standalone app into a Servlet. If possible: stay away from JSP when you want to create PDF files. (I don't say it's impossible, I only say that you'll save yourself plenty of trouble that way.) Secondly: each JSP has its own table and chart. So... you want to use the JSP as input? My interpretation is that the JSP produces HTML; but the chart: is it HTML too? I assume it's not. I assume it's an image. Is it produced by a JSP? Strange! You can write an application that produces PDFs with charts that come from JFreeChart: http://1t3xt.info/examples/browse/?page=example&id=194 You can create all sorts of PDF files using iText: http://1t3xt.info/examples/browse/ But your question isn't really answerable with one example. You'll have to go through a certain learning curve first, so that you can tune your question. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
