4

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

0

8 Answers 8

5

You can use the iText library.

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

3

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.

3

We use Flying Saucer.

3
  • Flying Saucer...Is it a modified form of ITEXT
    – Biju CD
    Aug 19, 2009 at 11:34
  • 1
    @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
    Aug 19, 2009 at 11:39
  • Flying Saucer provides option to convert xhtml to pdf using iText.
    – Madhu
    Sep 12, 2009 at 14:59
2

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

1

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.

1

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.

1

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

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.