Use injected Cmaps path

This commit is contained in:
Alasdair Smith 2017-08-25 15:48:13 +01:00
parent baf4eb6b52
commit 285c9587e9

View file

@ -15,7 +15,7 @@ define [
constructor: (@url, @options) ->
# set up external character mappings - needed for Japanese etc
window.PDFJS.cMapUrl = './bcmaps/'
window.PDFJS.cMapUrl = window.pdfCMapsPath # injected in editor.pug
window.PDFJS.cMapPacked = true
if window.location?.search?.indexOf("disable-font-face=true") >= 0