Top 5 tools in java to generate reports.
Apache POI for generating the excel sheets
It is one of the most popular framework in java for generating the excel-sheets. It supports MS-Office extensions like .xls and .xlsx etc. With the help of Apache POI you can create workbook that can have multiple sheets.
Jesper Reports
It uses iText itself and is more than a PDF library you asked for, but if it fits your needs I'd go for it. Simply put, it allows you to design reports that can be filled during runtime. If you use a custom datasource, you might be able to integrate JasperReports easily into the existing system. It would save you the whole layout related troubles, e.g. when invoices span over more sites where each side should have a footer and so on.
iText PDF
It is well known for creating the pdf, it support almost all kind of elements like Chapter, section, paragraph, phrase, chunk, image, hyper-link (internal and external both) etc. But it have some drawbacks as well as I read that their AGPL license requires from you "distribution of all source code including your own product, including if it is a web-based application", among other things. Seems to be completely unacceptable for any commercial project
Apache PDFBox
This also a PDF generating library implemented by Apache. it is also advanced enough to accommodate all kind of elements and it also provides a great support and easy to use. The Apache PDFBox® library is an open source Java tool for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. Apache PDFBox also includes several command-line utilities. Apache PDFBox is published under the Apache License v2.0. Download here : PDFBox Download
BFO for creating the PDFs- Big Faceless Java PDF Library
The smartest PDF library for creating, editing, displaying and printing Acrobat PDF documents. The PDF API is small, fast, easy to use and integrate into your projects, and is completely written in Java. The PDF Library reads and writes PDFs for all versions of Acrobat (including PDF 2.0), and boasts a dynamic range of features including:
- Transparent Unicode support - create documents in Arabic, Russian or Japanese as easily as English
- TrueType and Type1 fonts, with subsetting for smaller files. Great for OCR
- PDF Encryption, for password-protected documents (40 and 128 bit RC4 or AES)
- Embed JPEG, PNG, GIF, TIFF or java.awt.Image images, or add Barcodes directly to the PDF
- Use Spot colors, calibrated ICC profiles and other advanced colorspaces
- Add HTML-style Hyperlinks to text or images
- Process 1000+ words a second with kerning, ligatures, justification and ‘curly quotes’ for legibility
- Simplify complex document creation by defining and applying "Styles"
- Supports PDF/UA standard.
- It is a paid library. For more details BFO products
Note : FOP is an XSL formatter written in Java. It is used in conjunction with an XSLT transformation engine to format XML documents into PDF.
Comments
Post a Comment