What's a good way to make PDFs in java? iText, pdfbox, and perhaps other libraries?
However there is another way to create PDFs which is (at least for me and my use case) easier. And that is: create a HTML. Then convert that HTML into a PDF using flying saucer.
Why is this easier? Because creating a PDF from scratch is something that makes me feel sick.
To get good looking PDFs here is what I suggest:
- Use a good template library like thymeleaf to generate a html. You can style the HTML and you have a good turnaround time to get a good looking HTML. You can even use CSS to style it
- Use the flying saucer library to convert the HTML to PDF
- ???
- Profit
Comments
Post a Comment