HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Pd4ml Pro version TTF issue
- This topic has 2 replies, 2 voices, and was last updated Mar 11, 2016
19:27:28 byAnonymous.
-
AuthorPosts
-
February 1, 2016 at 05:56#27057
Hello ,
I created the pd4fonts.properties with the command as below
java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/When I run my Java Program deployed on tomcat I get following debug info
version: PD4ML 370 Pro (eval) not yet in cache: file:C:EpicFonts/pd4fonts.properties 'serif' is not in pd4fonts.properties file reject TTF lookup for: 'serif' not yet in cache: file:C:WindowsFonts/times.ttf reject TTF lookup for: 'times new roman' not yet in cache: file:C:WindowsFonts/cour.ttf reject TTF lookup for: 'courier new' not yet in cache: file:C:WindowsFonts/gothic.ttf reject TTF lookup for: 'century gothic' not yet in cache: file:C:WindowsFonts/calibri.ttf reject TTF lookup for: 'calibri' not yet in cache: file:C:WindowsFonts/pala.ttf reject TTF lookup for: 'palatino linotype' not yet in cache: file:C:WindowsFonts/impact.ttf reject TTF lookup for: 'impact' not yet in cache: file:C:WindowsFonts/tahoma.ttf reject TTF lookup for: 'tahoma' 'helvetica' is not in pd4fonts.properties file reject TTF lookup for: 'helvetica' not yet in cache: file:C:WindowsFonts/l_10646.ttf reject TTF lookup for: 'lucida sans unicode' not yet in cache: file:C:WindowsFonts/lucon.ttf reject TTF lookup for: 'lucida console' not yet in cache: file:C:WindowsFonts/arial.ttf reject TTF lookup for: 'arial' not yet in cache: file:C:WindowsFonts/ariblk.ttf reject TTF lookup for: 'arial black' not yet in cache: file:C:WindowsFonts/arial-narrow_[allfont.net].ttf reject TTF lookup for: 'arial narrow' not yet in cache: file:C:WindowsFonts/verdana.ttf reject TTF lookup for: 'verdana'
I used following code on Java Side
pd4ml.useTTF("C:EpicFontspd4fonts.properties", true);Alternatively I downloaded allfont.zip file and added fonts.jar to deployment and tested and that too didn’t work.
Please advice on what can be the problem.
March 9, 2016 at 11:41#29854Please try using pd4ml.useTTF(“C:EpicFontsabc.ttf”, true); instead of pd4ml.useTTF(“C:EpicFontspd4fonts.properties”, true);
March 11, 2016 at 19:27#29853>
pd4ml.useTTF("C:EpicFontsabc.ttf", true);
It will not work that way. It should always point to a font mapping .properties file or to a directory where pd4fonts.properties is. -
AuthorPosts
The forum ‘General questions / FAQ’ is closed to new topics and replies.
