With the latest release of the Groovy Document Builder, the entire project (including the PDF builder) are now available under the MPL2 license.
I’ve removed iText as a dependency and am now using PdfBox for the Pdf generation so that everyone can use this with the far more permissive MPL2 license (instead of AGPL).
Here’s an updated example using the latest version:
This will render a Word and Pdf document that looks like this:
PdfBox works great but it’s extremely low level. When rendering the paragraphs and tables I have to do all the work of breaking up lines,
positioning the text on the page, and drawing the lines of the table borders.
While the test coverage is looking much better now, given how much more complex the builder is I anticipate there being some edge cases in
rendering both paragraphs and tables that I missed. If you run into any issues, please raise an issue.
I’ll start planning the next release (0.3) soon, which should include at very least headers and footers. Feel free to offer up any suggestions or
feedback on how things look like so far either on the project page or on twitter (@craigburke1).