THE ZEPINT NETWORK

programmer assist

Coldfusion Coldfusion XML Feeds

Coldfusion Questions Coldfusion Solutions Coldfusion Articles

CFML short for ColdFusion Markup Language, a proprietary markup language developed by Allaire for use with ColdFusion. CFML is a tag-based Web scripting language supporting dynamic Web page creation and Database access in a Web server environment. In the language, ColdFusion tags are embedded in HTML files. The HTML tags determine the page's layout while the CFML tags import content based on user input or the results of a database query. Files created with CFML have the file extension .cfm.

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

Try CFXPDF instead?

reply by Srirangan

I'm not personally familiar with CF_HTMLPDF3 but I have used the CFXPDF in the past, and this tag does have multi linguial support. You can check it at: http://www.easel2.com/cfxpdf_support.html

- Srirangan

Post reply Subscriptions

Re: Chinese Character in pdf through CF_HTML2PDF3

reply 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_HTML2PDF3

reply 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_HTML2PDF3

reply 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!

Search via Google

User Login

Email Address

Password

Leading Experts

Rank Expert Points
#1 frankzzsword 4650
#2 Bejaan 2950
#3 csfreak 1100
#4 Anurag 700
#5 keyvez 700
#6 nnarasimha 600
#7 Nakata 600
#8 martinig 600
#9 mastercomputers 550
#10 Abhishek Chatterjee 250
#11 Abels 250
#12 Huntress 150
#13 Adkron 150
#14 Yogesh 100
#15 lexxwern 100
This is a list of overall best performing experts, how many points do you have?