Page 1 of 1

PDF file only contains symbols '#'

PostPosted: Fri Sep 10, 2021 7:41 am
by avstp
I'm trying to generate pdf file like this:
Code: Select all
Docx4J.toPDF(wordprocessingMLPackage, outputStream);

But as result in generated file I only see symbols '#' instead of text. I wonder if problem is in fonts? If so then how can I customize the fonts location folder, so it would located inside my jar?

Re: PDF file only contains symbols '#'

PostPosted: Sun Sep 26, 2021 5:55 pm
by jason
You'd be using FOP, so see ... ar-for-fop

FORendererApacheFOP in docx4j-export-fo would need to be modified so you could have the CustomPathResolver given in that example.