简体   繁体   English

使用iText /任何其他库使用现成数据通过Java(Web应用程序)生成PDF报告

[英]Generate PDF reports through Java(web applications) using iText/ any other library using ready made data

Before you down vote me, I'm not here to ask on how to use iText in Java. 你投票给我之前 ,我不是在问这个如何在Java中使用iText。 My query is about generate pdf's(reports) using iText. 我的查询是关于使用iText生成pdf(报告)。 We currently have a set of reports that are prepared in html, is there any way that I could use the data being prepared here to directly generate a pdf rather than write Java code to manually write (Java)code to prepare a table line by line as in the case of iText. 我们目前有一组用html编写的报告,有没有什么方法可以使用这里准备的数据直接生成pdf而不是编写Java代码来手动编写(Java)代码来逐行准备表就像iText的情况一样。 A link to an existing solution would suffice as well. 现有解决方案的链接也足够了。

try JasperReport . 尝试JasperReport with this you can create templates and generate PDFs dynamically by passing just data. 通过这种方式,您可以通过传递数据来动态创建模板和生成PDFs you can use iReport for designing jasper templates. 您可以使用iReport设计jasper模板。

Another alternative to iText would be XSL-FO. iText的另一种替代方案是XSL-FO。 You could create a Velocity template for the XSL-FO stylesheet and dynamically populate it with your data. 您可以为XSL-FO样式表创建Velocity模板,并使用您的数据动态填充它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM