Welcome Guest Search | Active Topics | Sign In | Register

No able to view the Japnese text. Options
Bimal
Posted: Wednesday, January 27, 2016 7:12:11 AM
Rank: Newbie
Groups: Member

Joined: 1/27/2016
Posts: 1
Hello All,

I am newbie to EO PDF . Actually my project supports multilingual languages like English , Spanish and Japanese. I am creating some PDF by fetching the data from database. But when i am trying to render the text(Japanese text) in the PDF it goes missing from the PDF. I am crating the block AcmBlock . Here is my Code.

AcmBlock blockObj = null;
string content = "初中級" ;
try
{
AcmText acmTextObj = new AcmText(content);
blockObj = new AcmBlock(acmTextObj);
blockObj.Style.Top = top;
blockObj.Style.Left = left;
blockObj.Style.Width = width;
Code: C#

blockObj.Style.Height = height;
blockObj.Style.FontName = fontName;
blockObj.Style.FontSize = fontSize;
blockObj.Style.ForegroundColor = GetColor(color);
blockObj.Style.FontStyle = GetFontStyle(fontStyle);
}
catch (Exception)
{
}
return blockObj;

First i am calling this method and after that i just render the block object by Acmrender Object.

Could anyone please help me out. is it possible to render the foreign characters in PDF.

Thanks

eo_support
Posted: Wednesday, January 27, 2016 10:35:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

You need to set the font name to a Chinese font name that does have font data for the characters you are trying to render. Windows does font substitute if the current font does not have the font data for characters needs to be displayed, but the PDF creator interface doesn't do that. So if you must explicitly set the correct font name.

Our HTML to PDF converter does perform font substitution. So if it is not practical for you to always explicitly specify the correct font name, then you may want to consider using the HTML to PDF interface.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.