I am using Docx4J.toPDF(wordMLPackage, new FOS("path/to/file.pdf"))
in order to convert a ".docx"
file to ".pdf"
. Although the conversion is happening fine but the original document had Calibri font and the resultant pdf has Arial. Is there a way to set the font while doing this conversion.
It would be better if you could give some link to how font properties can be set in general like font size, font family etc, if there is facility for that.
I searched online but could not find any help on this. Waiting for your responses. Thanks!