Chinese Character in pdf through CF_HTML2PDF3
DiggBlinkRedditDeliciousTechnorati
question by Raheem | Moderate
Hello Everybody,
I am using the CF_HTML2PDF3 for creating the pdf document run time. when I create the text based on Chienes Unicode charachter then pdf shows the junk characters instead of chiense. where as other lanugages like French and Spanish are created fine. how could I set chiense character in pdf through CF_HTML2PDF3 tag. please help me,
Post reply
Subscriptions
Re: Chinese Character in pdf through CF_HTML2PDF3reply by Raheem I have use CFXPDF too but still its return me the garbadge character in pdf file instead of true chinese character. so what do I. i m using its standrad edition
Post reply
Subscriptions
Re: Chinese Character in pdf through CF_HTML2PDF3reply by Raheem <!--- This code generates the file simplepdf.pdf --->
<cf_pdf file="simplepdf.pdf" encoding="UTF-8">
<cf_pdf_page size="LETTER">
<cf_pdf_text>CFX PDF allows you to dynamically generate PDF files by using a simple Coldfusion TAG API.</cf_pdf_text>
<cf_pdf_text x="200" y="500">This text is dynamically positioned with an X and Y Coordinate.</cf_pdf_text>
<cf_pdf_text x="200" y="300" align="right" columnwidth="100">This text is forced into a column and is positioned with an X and Y coordinate and aligned to the right.</cf_pdf_text>
</cf_pdf_page>
<cf_pdf_page width="300" height="400">
<cf_pdf_text>its chiense character лÀ´Íê³ÉÄãµÄ¹ÍÔ±¼Í¼ΪÁ÷ÐÔ¸Ðð ·´²¡¶¾Ò©Îï·þÎñ¡£ ÇëµÇ¼ÔÚʹÓÃÓû§Ê¶±ðÃû֮ϺͿÚÁî¸øÄãÓÉÄãµÄ¹ÍÖ÷¡£.</cf_pdf_text>
</cf_pdf_page>
</cf_pdf>
The above code contain the chinese character copy and paste into the Notepad and save with encoding type UTF 8 and run thorough your coldfusion webserver. my OS fully support chinese character set and also shown on webbrowser but when I generate the pdf its return strange character.
Post reply
Subscriptions
Re: Chinese Character in pdf through CF_HTML2PDF3reply by PHRED html2pdf does NOT support chinese characters and is not likely to.
We had to switch to cfdocument, even then it only works when 8.0.2 coldfusion version is installed.
<cfdocument name="QCReport" filename="#sRptPhysicalPath##sPDFFilename#" format="#sPDFFormat#" backgroundvisible="no" overwrite="yes" fontembed="yes">
Post reply
Subscriptions
Got a Coldfusion Question?
Just Sign Up and ask the top Coldfusion experts!
|