|
I am trying to get pdf from the example emb_utf.jsp. But the output I am getting out of pdf is showing ? marks for chinese character.
I created a directory fonts under the root of the application and put pd4ml.properties their. The contents of pd4ml.properties is #this is an autogenerated file. please remove manually any references to copyrighted fonts #Tue Aug 11 10:47:31 EDT 2009 KaiTi_GB2312=SIMKAI.TTF
and the content of emb_utf.jsp
<%@ taglib uri="/WEB-INF/tlds/pd4ml.tld" prefix="pd4ml" %><%@page contentType="text/html; charset=UTF-8"%><pd4ml:transform screenWidth="400" pageFormat="A5" pageOrientation="landscape" pageInsets="15,15,15,15,points" inline="true" debug="true" fileName="myreport.pdf">
<!-- TODO: 1. adjust fonts directory below. 2. make sure that the directory contains pd4fonts.properties file 3. for more info see PD4ML.useTTF( String, boolean ) Java API docs --> <pd4ml:usettf from="/fonts"/>
<html> <head> <title>PD4ML embedded fonts test</title> <META http-equiv=Content-Type content="text/html; charset=utf-8"> </head> <body> <font face="KaiTi_GB2312"> 随着就业难的加剧,大学生的期望月薪也一降再降。有专项调查显示,1.58%的学生为了职业理想可以接受“零工资”, 有66%的学生将月收入定位在1000元至2000元之间。 <p> 而北京市劳动保障局日前透露,今年北京地区本科毕业生初次就业率为88%,研究生为90.1%,专科生为80%, 与去年基本持平。教育部今年的数据还未公布,去年全国普通高校毕业生就业率近73%,实现了245万毕业生就业。 </font>
</body>
</html> </pd4ml:transform>
The lib directory have pd4ml_demo.jar pd4ml_tl_demo.jar ss_css2.jar
So I am not sure what more change I have to do to make it run. I have to use the pro version for polish site. If it works fine Can anybody help
|