wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes PDF and java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "PDF and java" Watch "PDF and java" New topic
Author

PDF and java

omar bili
Ranch Hand

Joined: Aug 13, 2004
Posts: 177
Hi
i tried to use Crystal Report in my application but it seems that
they prefere the .net platform, nothing worked.
i heard that i could optain reports in a PDF format, if anyone could
point me to a tutorial on how to do that, or if there is an example
it would be great.
Regards, Omar
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Try Jasper reports instead.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Caitlin Fourie
Greenhorn

Joined: Oct 03, 2003
Posts: 3
Howdy

Are you looking for an example of how to use Crystal Reports with Java to create a pdf document or are you looking for a way in java to create a pdf document?

If it is the former, I have no suggestions as I have never used Crystal Report, but looking at it on Google, it seems it's a plugin/application to generate interactive reports.

If it is the latter, there are two Java APIs that I know of that can be used to generate pdf documents, namely FOP and iText. I last used these libraries about 8 months ago, so if my comments are out of date, bear that in mind...

FOP uses XSL-FO and is simple to get working, but with past experience, can be quite slow and resource intensive when generating large reports, or reports that contain images (By large, I mean 13 000 images along with corresponding data for each image). It is not as diverse as iText when it comes to formatting the look of the report itself, but was easier to set up and the format could be created dynamically. See On Java Tut for a nice tutorial on FOP

iText has a lot of great features, but I remember it was less dynamic if you wanted to format the layout on the fly as it were. There are some really nice examples of how to use iText on their website.

Hope you find a solution...
omar bili
Ranch Hand

Joined: Aug 13, 2004
Posts: 177
Thanks guys that's exactly what i want
i'll start with the IText it seems more
easy
Omar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PDF and java