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?
It is currently Mon Oct 27, 2025 8:03 pm
News of Plutextjava.lang.IllegalAccessError: Method 'java.lang.Class org.apache.xalan.extensions.ExtensionHandler.getClassForName(java.lang.String)' is inaccessible to class 'org.apache.xalan.extensions.ExtensionHandlerJavaPackage' (declaration of 'org.apache.xalan.extensions.ExtensionHandlerJavaPackage' appears in /data/app/~~ZVtmRtuHfRuZhq2toABrQA==/com.example.myapplication-ahlQie1BfblXFLdcJxSU1Q==/base.apk!classes3.dex)File templateZip = new File("resources/doctest.docx")
WordprocessingMLPackage template = WordprocessingMLPackage.load(templateZip)
def map = ["pagebreak": "<w:r><w:br w:type=\"page\"/></w:r>"]
template.mainDocumentPart.variableReplace(map)Total posts 10202 • Total topics 2873 • Total members 2100