We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Issue with embedding Chinese/Japanese font in PDF document

Thread ID:

Created:

Updated:

Platform:

Replies:

90998 Oct 29,2009 02:35 AM Feb 22,2011 04:56 AM ASP.NET Web Forms (Classic) 4
loading
Tags: PDF
Dipanjan Ray
Asked On October 29, 2009 02:35 AM

Hi I am working in a project where the need is to create PDF document with embedded font so that the document is truly portable in nature and anyone can open the document on any machine irrespective of the locale, culture and the font used in the pdf. I am using attached code for doing this (sample taken from SyncFusion site only).

The problem I am facing with this code is when I am trying to embed any Chinese/Japanese font, while creating the PdfTrueTypeFont object, stack overflow exception is coming. The actual error is as below:

"An unhandled exception of type 'System.StackOverflowException' occurred in Syncfusion.Pdf.Base.dll"

I tried all possible options but could not get rid of this error. So need to know whether I am doing anything wrong or this is a bug in the Syncfusion.

An early response to this will be highly appreciated.



Sample_a9389f4b.zip

Dipanjan Ray
Replied On October 29, 2009 02:41 AM

Forgot to add the font file I am using for the above sample. It is corrected now.

Dipanjan



HDZB_35_8d89c854.zip

Thiruvenkadam E [Syncfusion]
Replied On October 30, 2009 07:50 AM

Hi Dipanjan,

Thaks for your interest in Syncfusion products.

We can able to reproduce the reported issue in our side.

Could you please open a new direct – trac incident with subject line as Forum 90998- Issue with embedding Chinese/Japanese font in PDF document. Please send the sample in the direct trac incident. We will look into the sample and provide the possible solution.

Regards,
Thiru

Michael Tse
Replied On February 18, 2011 04:13 AM

I hit exactly the same error when I tried to convert a HTML page with Chinese characters to PDF. Actually the HTML is taken from one of the samples your company gave to another users in a forum thread. Do you mind to share the solution to other Syncfusion users like me? Thanks.

The HTML contains this:
久乆乇么义乊乞也 乆亇亇

久乆乇么义乊乞也 乆亇亇







Geetha M [Syncfusion]
Replied On February 22, 2011 04:56 AM

Hi Michael,

Thank you for your interest in Syncfusion products.

I am afraid that I am not able to reproduce the problem in our latest public release v9.1.0.20. Could you please try using this version?

http://www.syncfusion.com/downloads/latest-version

Please let me know if you have any questions.

Regards,
Geetha


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;