https://www.docx4java.org/blog/2020/09/ ... x4j-8-2-3/ contrasts 3 alternatives for getting PDF output.
If you are generating documents and PDF is your one and only output format, then you might be interested in https://www.docx4java.org/blog/2020/09/ ... ng-xsl-fo/