When using cfdocument to display in PDF format, there may be problems displaying Chinese, Korean or other foreign characters. The characters may display as ? or boxes. This problem doesn't exist with FlashPaper format, as the fonts are loaded automatically.
The default installation of ColdFusion MX 7 works with PDF files in English and Japanese. The reason for this is that the following two files are created in the cf_root/lib folder:
- cffont.properties
- cffont.properties.ja
A properties file must be created in the cf_root/lib directory for the desired language. For example, in order to display Chinese characters properly, create a cffont.properties.zh file. The cffont.properties.ja file can be copied to create the cffont.properties.zh file. However, it is necessary that the proper Chinese fonts be installed on the computer.
Keywords:
1e05de89

