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.

how to fill chinese into pdf

Thread ID:





79129 Jan 22,2009 02:08 AM Feb 2,2009 02:22 AM ASP.NET Web Forms (Classic) 3
Tags: PDF
Administrator [Syncfusion]
Asked On January 22, 2009 02:08 AM

I want to fill chinese words in a template pdf like
(form.Fields["InsurantName"] as PdfLoadedTextBoxField).Text = "中國";
how can I do?

Administrator [Syncfusion]
Replied On January 22, 2009 10:42 PM

when I do this
(form.Fields["InsurantName"] as PdfLoadedTextBoxField).Text = "中國";
it display on screen is correct,
but print out is scramble.

Bhuvaneswari P [Syncfusion]
Replied On January 23, 2009 05:07 AM

Hi Gary,

Thank you for your interest in Syncfusion products.

I am able to reproduce the issue. You can set correct Unicode text in your form fields by setting the Overloaded Function of PdfTrueTypeFont Unicode property as true. This feature (Setting font property for form field) has been implemented only in our latest version 2009 Volume1.

Code snippet to insert Unicode text in Form fields:

//Load the template document
PdfLoadedDocument doc = new PdfLoadedDocument(@"..\..\Data\Form.pdf");

PdfLoadedForm form = doc.Form;

//Create truetype font.
Font font = new Font("Arial", 13f);

//Set as unicode to render non-unicode charaters.
PdfFont font = new PdfTrueTypeFont(fnet, true);

// fill the fields from the first page
(form.Fields[0] as PdfLoadedTextBoxField).Font = font;
(form.Fields[0] as PdfLoadedTextBoxField).Text = "中國";

Please download the latest version from the below link:

After modified the sample as we said, please run the sample in the latest version and let us know still you are able to reproduce the issue.

Best Regards,

Administrator [Syncfusion]
Replied On February 2, 2009 02:22 AM

Hi Bhuvana,
It can print in chinese, thank you.


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.