Asian fonts support for direct print
This article explains how to fix documents that are unreadable after printing due to missing fonts (particularly Asian fonts). This may happen if a PDF is uploaded to Dispatcher Paragon Cloud via public API. This solution is not applicable to the situation where a user submits the PDF document via the Dispatcher Paragon Cloud Client and the document is flattened and converted to PDF/A.
Background information
Once a print job is submitted via public API, the Primary or Secondary servers convert it. The goal is to convert any print job to PDF format. If the submitted job is a PDF already, the conversion process will leave it as is and the file will be spooled in the original format. When the job is released using direct print, another service converts it to the Postscript format. Sometimes, the printed document lacks certain fonts. Typically if the original contains Asian languages. You can solve this issue by adding the fonts into the operating system for your Primary or Secondary server and providing a configuration file for the Xpdf converter.Solution for CentOS (RHEL)
Check whether the CMap package is installed by running the following command:
CODErpm -q poppler-data
If it isn't, install it.
CODEsudo yum install poppler-data
Install the required fonts, for example, Google Noto fonts. Note that the Xpdf converter does not support ttc (true type collections) such as google-noto-cjk. Use only otf or ttf format. Example:
CODEsudo yum install google-noto-sans-japanese-fonts sudo yum install google-noto-sans-korean-fonts sudo yum install google-noto-sans-traditional-chinese-fonts sudo yum install google-noto-sans-simplified-chinese-fonts
Prepare the xpdfrc configuration file for Xpdf converter. This file must have the following structure:
CODE#----- begin Japanese support package cidToUnicode Adobe-Japan1 /usr/share/poppler/cidToUnicode/Adobe-Japan1 unicodeMap ISO-2022-JP /usr/share/poppler/unicodeMap/ISO-2022-JP unicodeMap EUC-JP /usr/share/poppler/unicodeMap/EUC-JP unicodeMap Shift-JIS /usr/share/poppler/unicodeMap/Shift-JIS cMapDir Adobe-Japan1 /usr/share/poppler/cMap/Adobe-Japan1 toUnicodeDir /usr/share/poppler/cMap/Adobe-Japan1 fontFileCC Adobe-Japan1 /usr/share/fonts/google-noto/NotoSansJP-Regular.otf #----- end Japanese support package
You can download the file here.
Place the xpdfrc file in the /etc/ folder.
Set the permissions for the file to 644 at minimum.
CODEsudo chmod 644 xpdfrc
For Xpdf configuration in general, see https://www.xpdfreader.com/xpdfrc-man.html.
For Xpdf language support, see https://www.xpdfreader.com/download.html.