HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › TTF fonts path inside jsp
- This topic has 4 replies, 3 voices, and was last updated Sep 11, 2013
07:02:48 byAnonymous.
-
AuthorPosts
-
November 24, 2009 at 12:23#26291
Hi,
I’m using PD4ML 350 Pro/Struts/Tomcat/Windows XP.
I’m trying to use a custom font that I’ve installed that doesen’t seem to be interpreted correctly.
I’ve created pd4fonts.properties having just one line in it:
[properties]IDAutomationHC39M=IDAutomationHC39M.ttf[/properties]
and placed it inside c:windowsfonts folder toghther with the ttf file.The problem is when setting the path to the pd4font folder for which I’ve tried numerous possibilities:
<pd4ml:usettf from="c:/windows/fonts"/> <pd4ml:usettf from="file://localhost/c:/windows/fonts"/> <pd4ml:usettf from="file:///c:/windows/fonts"/>
with no result.I’ve even tried adding font file and .properties file inside the project and specified the path to it as
<pd4ml:usettf from="/pdf" />
with same result.Is there anyway I can debug this to see if the the specified path is seen corectly?
Thanks,
EmilDecember 1, 2009 at 13:54#27638Emil,
try to switch debug on with
<pd4ml:transform ... debug=true>and inspect the log file of the server.First it should dump the version number. Please make sure if it has Pro suffix.
December 4, 2009 at 12:34#27639Hi,
I’ve managed to solve this – my jsp page had a template and in that template the
<pd4ml:transform>tag was used and I tried to use the<pd4ml:usettf>tag inside the child page. Once I’ve moved it right after the transform tag it worked.I had the debug=true value set, but it seems it couldn’t find the usettf tag at all.
Thanks for the help,
EmilSeptember 11, 2013 at 07:01#27640i have problem with arabic i used
<pd4ml:transform screenWidth="400" pageFormat="A5" pageOrientation="landscape" debug="true" pageInsets="100,100,100,100,points" > <pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New"/> <pd4ml:usettf from="C:/fonts"/> </pd4ml:transform>
but the arabic appear with ???? why can any one help me
September 11, 2013 at 07:02#27641i have problem with arabic i used
<pd4ml:transform screenWidth="400" pageFormat="A5" pageOrientation="landscape" debug="true" pageInsets="100,100,100,100,points" > <pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New"/> <pd4ml:usettf from="C:/fonts"/> </pd4ml:transform>
but the arabic appear with ???? why can any one help me
-
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
