PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: UTF-8 Characters
   PostPosted: 14 Dec 2011, 11:35 
Hello,
In our application we have some special characters which are displaying well in jsp, html pages. For example ohm character " Ω ".
the same content we are passing to pd4ml, when it generated pdf, the character displaying as " ? ".
Searched over the forum and tried all the possible ways, also included the below code,
<%@page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

But still not succeed. Please help me on this.
Tried downloading latest pro version, but the TTF creation and all is little messy.
please suggest me doing in some way.

We have brought licence of PD4ML.
Thanks,
Uday


  Subject: Re: UTF-8 Characters
   PostPosted: 14 Dec 2011, 15:56 
In order to display non-Latin characters you have to utilize TTF Embedding feature of PD4ML Pro: pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

A quick solution for you could be to download a basic font set from
http://pd4ml.com/i/easyfonts/fonts.jar
put the JAR to WEB-INF/lib and add <pd4ml:usettf from="java:fonts"> to your JSP (nested to <pd4ml:transform>).



[Reply]     [ 2 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share