• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Which java pdf library is best ?

 
Ranch Hand
Posts: 110
Android Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Redhat Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the JasperReports documentation - I think it supports XLS. Not sure what you mean by "document" format.
 
author
Posts: 90
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You get good luck from rubbing the belly of a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic