Page 1 of 1

Path to Font Folder

PostPosted: Tue Jul 05, 2022 10:02 pm
by tdr
I am wiring a Springboot app.
The container that app will run in will not have any fonts installed.
Is it possible to include the font files in my jar file and load them for use in PDF conversation?

Re: Path to Font Folder

PostPosted: Mon Jul 11, 2022 9:05 am
by jason
I assume you are using PDF via XSL FO.

This uses FOP; FOP's answer to your question is to use a ResourceResolver:

https://lists.apache.org/thread/1h86q44 ... d525pq4czn

https://stackoverflow.com/questions/177 ... ar-for-fop

https://stackoverflow.com/questions/416 ... -classpath

For a docx4j example, please see https://github.com/plutext/docx4j/blob/ ... .java#L195