Dynamically generate pdf files in servlets?

Is there a way to dynamically create PDF files for receiving texts and images?

+4
source share
8 answers

iText and JasperReports are great for creating PDF reports via Java.

With iReport, you can easily create the jasper files you need for this. A very easy-to-use tool and it helped me a lot when I needed to create several reports in pdf format.

+3
source

You can use the iText library.

If you create reports, JasperReports can generate PDF output.

+5
source

We use the Flying Saucer .

+3
source

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

+2
source

There are many ways to generate PDF files on the fly.

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

+1
source

I work with Apache FOP and it works amazingly well. It is well maintained and based on the XSL-FO standard.

+1
source

A little late, but perhaps useful for other search engines. Docmosis can fill out templates and create documents on the fly. Assuming that you need to include images and text, Docmosis can populate them on the fly from Java objects, text / image files, database queries, etc. Java and Openoffice are required on the server side.

+1
source

If you make reports based on, for example, SQL queries, then iReport is a good choice, although sometimes it is a bit heavy. On the other hand, if you are going to create something more than a presentation and design, for example, a product sheet or a brochure, then my experience is that at first it is easier to generate html and css, and then use it to create a PDF.

0
source

All Articles