mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
enable pdfjs cmaps in pdfRenderer
This commit is contained in:
parent
4d551ced5e
commit
84f986058a
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ define [
|
|||
TEXTLAYER_TIMEOUT: 100
|
||||
|
||||
constructor: (@url, @options) ->
|
||||
# set up external character mappings - needed for Japanese etc
|
||||
window.PDFJS.cMapUrl = './bcmaps/'
|
||||
window.PDFJS.cMapPacked = true
|
||||
|
||||
if window.location?.search?.indexOf("disable-font-face=true") >= 0
|
||||
window.PDFJS.disableFontFace = true
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue