Hi,
am using Dynamic pdf generator for .Net version 7.x
want to generate pdf using chinese text but in generated pdf chinese text are not displayed.
how can i display chinese text in pdf and which font should i use for display it.
Generate PDF using Chinese Text
Re: Generate PDF using Chinese Text
Support · Mar 12, 2014Hello,
You can add Chinese text to the PDF without any problem using our DynamicPDF Generator for .NET product. You will need to use a font which has support for the Chinese text and character which you are adding to the PDF. You can create OpenTypeFont object using the correct TTF or OTF font file path and then set this font object to the page elements. Please refer to the documentation on OpenTypeFont class here
.
Also you can try using the CJK fonts to add Chinese text to the PDF. Please refer to the documentation on CJK fonts here
. Also below is code sample to create CJK font object.
Font font = Font.SinoTypeSongLight;
Thanks,
ceTe Software Support Team.