views:

555

answers:

8

Is there any way to create PDF dynamically against receiving texts and images?

+5  A: 

You can use the iText library.

If you're generating reports then JasperReports can generate PDF output.

cletus
+3  A: 

We use Flying Saucer.

S.Lott
Flying Saucer...Is it a modified form of ITEXT
cdb
@Biju: Flying Saucer is not *modified* iText at all. You can read their web site to see that they are an XHTML rendering engine that makes it very easy to create PDF's from XHTML.
S.Lott
Flying Saucer provides option to convert xhtml to pdf using iText.
Madhu
+1  A: 

There's a ton of ways to generate PDFs on the fly.

In Java, you can use the iText library. If you wanted to use Jython, you could use reStructuredText and possibly rst2pdf. Or you could just generate LaTeX files on the fly and make a system call to LaTeX.

Mark Rushakoff
+2  A: 

There are several libraries for working with PDF in Java, for example iText and Apache PDFBox.

Jesper
+3  A: 

iText and JasperReports are great to create pdf reports via Java.

With iReport you can easily create the jasper files needed for this. Very easy to use tool and helped me a lot when I needed to create some pdf reports.

FrankS
+1  A: 

I work with Apache FOP and it works amazingly well. It's well supported and it's based on the XSL-FO standard.

ATorras
A: 

If you're doing reports based on for example SQL queries then iReport is a good choice although it's sometimes a bit heavyweight. On the other hand if you're going to produce something that's more about presentation and design, like a product sheet or a brochure then my experience is that it's alot easier to first generate html and css and then use it to generate a PDF.

sigget
+1  A: 

A bit late but maybe useful to other searchers. Docmosis can populate templates and produce documents on the fly. Assuming you mean you need to include images and text, Docmosis can populate these on the fly from Java objects, text/image files, database queries etc. Java and Openoffice are required server-side.

jowierun