cfdocument ignores non-ascii characters


All Cyrillic and other non-ascii characters are not rendered by CFDOCUMENT

result by Lucee

(non-ascii characters are skipped, Calibri font rendered as Times)
If I add Calibri font using fontdirectory attribute, it is rendered correctly, but still ignores non-ascci.

in (CommandBox, also Lucee Express) - no problem

All fonts in place. Calibri is installed in Windows (no measures to add this font to Lucee taken)

skipping non-ascii characters also reproduced in (Lucee Express)


Windows-7 64 bit (English and Russsian versions tested)
JRE 1.8.0_221


Pothys - MitrahSoft
October 14, 2019, 11:42 AM

I've checked this ticket and confirm the issue happened on Lucee pdf extension after SNAPSHOT.
cfdocument will works fine until the pdf extension SNAPSHOT. After SNAPSHOT cfdocument ignores the non-ASCII value. But it workes as expected in ACF.

Sergey Mishchuk
May 23, 2020, 5:56 AM

Workaround: downgrade Pdf Extension to (this is the latest version working for me). Now Times and Courier fonts are rendered, while in Calibri and SimSun symbols are shown as question marks (?). Adding fonts to lucee/lib/fonts.jar fixes this (see

Versions from to in my environment (Windows-7 64 bit Russsian,
JRE 1.8.0_221-b11, Lucee produce “Error Failed to load PDF document“ (zero-length file)

To prevent Lucee from auto upgrading the extension on restart, I had to add

set LUCEE_EXTENSIONS="66E312DD-D083-27C0-64189D16753FD6F0;name=PDF Extension;version="

to lucee/bin/setenv.bat (or startup.bat)

Oddly, after setting environment variable even fonts not included in fonts.jar are rendered in pdf


Michael Offner


Sergey Mishchuk




Fix versions


Affects versions