pdf.js bundled GitLab cannot render CJK characters
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label. For the Community Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=bug For the Enterprise Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary GitLab cannot render PDF including CJK characters correctly. And, Firefox show 'Warning: Error during font loading: Error: Unable to load CMap at: nullAdobe-Japan1-UCS2' on JavaScript console. ### Steps to reproduce * Compile a tex file including CJK characters with [IPA fonts](https://ipafont.ipa.go.jp/#en) * Commit compiled PDF and push to GitLab * Show the PDF on GitLab ### Example Project * An example project is here: https://gitlab.com/mizunashi-mana/test-latex-ipa * The target PDF is here: https://gitlab.com/mizunashi-mana/test-latex-ipa/blob/master/article.pdf ### What is the current *bug* behavior? Render only page number and show 'Warning: Error during font loading: Error: Unable to load CMap at: nullAdobe-Japan1-UCS2' on JavaScript console ### What is the expected *correct* behavior? Render "日本語" with page number. The example PDF can render correctly on https://mozilla.github.io/pdf.js/web/viewer.html . ### Relevant logs and/or screenshots ![スクリーンショット_2018-11-04_1.05.38](/uploads/54cb3484722c27a57d78e5e287adb838/スクリーンショット_2018-11-04_1.05.38.png) ### Possible fixes Maybe, this is an upstream issue of pdf.js . Please upgrade bundled pdf.js . See also: https://github.com/mozilla/pdf.js/issues/7017
issue