PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: CJK fonts not displaying sometimes
   PostPosted: 29 Jun 2020, 08:23 
Hi PD4ML,

Below is a sample HTML which we are trying to convert to PDF.

Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html"; charset="UTF-8">
</head>
<body>
<p>simplified chinese</p>
<p>人人生而自由,在尊严和权利上一律平等</p>
</body>
</html>


The issue is that the chinese characters do not display after second/third conversion onwards. Same behaviour is observed with Japanese and Korean fonts. It always works for the first time though.

So, after 1st conversion pdf contains :

simplified chinese
人人生而自由,在尊严和权利上一律平等

After 2nd conversion pdf contains :

simplified chinese


The pd4ml jar version being used is 4.0.4 and debugInfo is enabled (But the logs are not being printed in the server logs and debug level logs have been enabled). The properties was generated and the corresponding jar with ttf files is being used during conversion.

Any comments on this behavior ?


  Subject: Re: CJK fonts not displaying sometimes
   PostPosted: 30 Jun 2020, 09:45 
@pd4ml any updates here ?


  Subject: Re: CJK fonts not displaying sometimes
   PostPosted: 30 Jun 2020, 15:07 
Please re-test with PD4ML v4.0.8


  Subject: Re: CJK fonts not displaying sometimes
   PostPosted: 02 Jul 2020, 16:46 
Hi @pd4ml,

Is there any specific reason/bug fix/improvement in 4.0.8 related to this? Just trying to understand the difference why you pointed to upgrade..


  Subject: Re: CJK fonts not displaying sometimes
   PostPosted: 02 Jul 2020, 19:54 
PD4ML v4.0.8 refines font lookup logic, so it definitely makes sense to try.

https://pd4ml.tech/release-notes/


  Subject: Re: CJK fonts not displaying sometimes
   PostPosted: 02 Jul 2020, 20:45 
As per the behavior, for the first conversion, it is working correctly, which indicates fonts must be looked up correctly right ? We are seeing this behavior after second or third conversion.



[Reply]     [ 6 posts ] 

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