pdf.js bundled GitLab cannot render CJK characters

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
  • Commit compiled PDF and push to GitLab
  • Show the PDF on GitLab

Example Project

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

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

Edited by Mizunashi Mana