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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issue with embedding Chinese/Japanese font in PDF document

Thread ID:





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

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.


Dipanjan Ray
Replied On October 29, 2009 06:41 AM UTC

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



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

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.


Michael Tse
Replied On February 18, 2011 09:13 AM UTC

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 09:56 AM UTC

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?


Please let me know if you have any questions.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon