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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to fill chinese into pdf

Thread ID:





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

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 23, 2009 03:42 AM UTC

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 10:07 AM UTC

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 07:22 AM UTC

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.

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