This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Which java pdf library is best ?  RSS feed

 
Ranch Hand
Posts: 110
Android Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey I am working on an internet banking project I have to export the statement report in pdf format . so which library is more efficient which can create pdf from database. and create it in fix format. please tell me reason too.
- pdfBox
- iText
- JFreeReport
- JPedal
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't really compare these. PdfBox can only create simple PDFs based on text files; it supports few of the features iText does.

Using iText would mean an API-driven approach, whereas Jasper is declarative/template-driven (and uses iText underneath, so it can't create anything that iText can't create on its own).

For a fixed format -as used in reports- check out JasperReports and Apache FOP.
 
Shashank Agarwalg
Ranch Hand
Posts: 110
Android Java Redhat
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey thanks for valuable reply hey one more thing if i wants to export the report in different format like document , excel sheet and
pdf .

should i use different libraries or is their any library which supports all.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think getting one library to do everything is a bit naive.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the JasperReports documentation - I think it supports XLS. Not sure what you mean by "document" format.
 
author
Ranch Hand
Posts: 88
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It used to be simple: you used PdfBox for extracting text from PDF, and you used iText for creating and manipulating PDF.
Nowadays, iText also supports text extraction, and I believe that PdfBox is gradually adding more PDF creation functionality.

Apache FOP (Formatting Objects Processor) can be used to create PDFs if you are making heavy use of XML in your process. Formatting Objects has some disadvantages: before you start creating PDF, you first create an XML file (using XSLT). This is a real MVC setup, which is a problem for really large documents (10,000+ pages).

The purpose of JPedal is to render PDFs (a viewer). It uses iText for some other aspects (for instance for filling out documents).
JasperSoft is a customer of iText Software Corp. They use iText as the PDF engine for JasperReports, a high-level tool that allows you to create reports.

I haven't worked with Apache POI for a very long time, but I used Apache POI to create/read XLS files.
 
Ranch Hand
Posts: 50
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used a combination of iText and JPedal for my recent project:
- JPedal to build the viewer.
- iText to build bookmark views.

and some other libraries for image decoding and encryption. Looks a good combination.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!