Hi,
I have a problem with embedded fonts when there is bold or italic elements in text (files embedded are big so i use file transfert https://www.transfernow.net/aNsfED112020).
It works perfectly when there is no bold or italic element in document (see helvetica.docx => helvetica.pdf)
But when bold or italic style is applied (see helvetica-bold.docx), i have this error (see stack.txt):
2020-11-20 15:35:19 ERROR LazyFont:130 - Failed to read font file file:/home/dev/.docx4all/temporary%20embedded%20fonts/1605882916587-Helvetica-bold.ttf
java.io.FileNotFoundException: /home/dev/.docx4all/temporary embedded fonts/1605882916587-Helvetica-bold.ttf
I can see in logs that embedded fonts are good listed (see logs.txt):
2020-11-20 15:35:16 INFO FontTablePart:382 - Writing temp embedded fonts 1605882916587
2020-11-20 15:35:16 INFO ObfuscatedFontPart:382 - deObfuscating 'Calibri' with fontkey: {01AE7680-03BB-4265-9983-001F0322C3BA}
2020-11-20 15:35:16 INFO ObfuscatedFontPart:382 - deObfuscating 'Calibri-bold' with fontkey: {70B9A714-370E-4A7B-99A5-82A2670355A1}
2020-11-20 15:35:16 INFO ObfuscatedFontPart:382 - deObfuscating 'Helvetica' with fontkey: {19EF9272-79AE-455E-9F01-9700593173EE}
2020-11-20 15:35:16 INFO ObfuscatedFontPart:382 - deObfuscating 'Helvetica-bold' with fontkey: {2CD2AF45-17C0-4228-962B-24EDCDF946C0}
2020-11-20 15:35:16 INFO ObfuscatedFontPart:382 - deObfuscating 'Calibri Light' with fontkey: {DEB2FBB5-EF76-48A5-B06B-9DE3C816CA5F}
I upgraded to version 11.2.5 yesterday (it doesn't work before and after ),
implementation("org.docx4j:docx4j-JAXB-ReferenceImpl:11.2.5")
implementation("org.docx4j:docx4j-export-fo:11.2.5")
and my code is very simple with default configuration :
val wordMLPackage: WordprocessingMLPackage = WordprocessingMLPackage.load(FileInputStream(inputFileName))
val os = FileOutputStream(outputFileName)
val foSettings = Docx4J.createFOSettings()
foSettings.opcPackage = wordMLPackage
Docx4J.toFO(foSettings, os, Docx4J.FLAG_EXPORT_PREFER_XSL)
Is there any configuration to fix this problem ?
Thank you for any help.