I'm writing code to convert HTML to PDF, which includes the following 2 dependencies:
<dependency>
<groupId>org.xhtmlrenderer</groupId>
<artifactId>flying-saucer-core</artifactId>
<version>9.1.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.xhtmlrenderer</groupId>
<artifactId>flying-saucer-pdf-itext5</artifactId>
<version>9.1.6</version>
<scope>compile</scope>
</dependency>
I have it working. And the only way I can see to do this is using the ITextRenderer. Unfortunately, it looks like this is iText 5, which requires AGPL license, or paying a large licensing fee.
Seems pretty clear to me, based on this license: https://github.com/flyingsaucerproject/flyingsaucer/blob/master/LICENSE
Is this correct?
Is there any other way to do this that doesn't require iText (or licensed software)?
I've tried Apache PDFBox, but it's so low-level, I'm not sure it would be possible. I know it wouldn't be easy. HTML -> PDF definitely isn't possible.
OpenPDF looked kinda weak.
Any thoughts/suggestions?
This is a somewhat small part of our project (startup), so licensed software isn't the first choice.
Thanks.