HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Convert html source to pdf › Re: Re: Convert html source to pdf
March 26, 2014 at 14:04
#29516
First you would need to index the fonts in /Windows/Fonts (to generate pd4fonts.properties). See http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
A quick solution would be to place fonts.jar (i.e. from http://pd4ml.com/i/easyfonts/fonts.jar ) to WEB-INF/lib of your web app (or to a shared lib of your desktop application) and to refer to it with:
pd4ml.useTTF(“java:fonts”, true);