cfdocument ignores non-ascii characters

Description

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

result by Lucee 5.3.3.62:


(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 5.2.9.31 (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
5.3.5.16-SNAPSHOT (Lucee Express)

Environment

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

Activity

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

I've checked this ticket and confirm the issue happened on Lucee pdf extension after 1.0.0.69 SNAPSHOT.
cfdocument will works fine until the pdf extension 1.0.0.69 SNAPSHOT. After 1.0.0.69 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 1.0.0.62 (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 https://dev.lucee.org/t/problem-with-chinese-characters-in-pdf/467/3)

Versions from 1.0.0.63 to 1.0.0.68 in my environment (Windows-7 64 bit Russsian,
JRE 1.8.0_221-b11, Lucee 5.3.6.61) 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=1.0.0.62"

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

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

Assignee

Michael Offner

Reporter

Sergey Mishchuk

Priority

Critical

Labels

Fix versions

None

Affects versions

Configure