mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Merge pull request #4470 from yurydelendik/packcmap
CMaps binary packing
This commit is contained in:
commit
68be273c69
352 changed files with 1351 additions and 413591 deletions
3
web/.gitignore
vendored
3
web/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
viewer-production.html
|
||||
locale.properties
|
||||
locale/
|
||||
locale/
|
||||
cmaps/
|
||||
|
|
|
@ -63,9 +63,11 @@ PDFJS.imageResourcesPath = './images/';
|
|||
//PDFJS.workerSrc = '../build/pdf.worker.js';
|
||||
//#endif
|
||||
//#if !PRODUCTION
|
||||
PDFJS.cMapUrl = '../external/cmaps/';
|
||||
PDFJS.cMapUrl = '../external/bcmaps/';
|
||||
PDFJS.cMapPacked = true;
|
||||
//#else
|
||||
//PDFJS.cMapUrl = '../web/cmaps/';
|
||||
//PDFJS.cMapPacked = true;
|
||||
//#endif
|
||||
|
||||
var mozL10n = document.mozL10n || document.webL10n;
|
||||
|
@ -1687,6 +1689,14 @@ function webViewerLoad(evt) {
|
|||
(hashParams['ignoreCurrentPositionOnZoom'] === 'true');
|
||||
}
|
||||
|
||||
//#if !PRODUCTION
|
||||
if ('disableBcmaps' in hashParams && hashParams['disableBcmaps']) {
|
||||
PDFJS.cMapUrl = '../external/cmaps/';
|
||||
PDFJS.cMapPacked = false;
|
||||
}
|
||||
//#endif
|
||||
|
||||
|
||||
//#if !(FIREFOX || MOZCENTRAL)
|
||||
var locale = PDFJS.locale || navigator.language;
|
||||
if ('locale' in hashParams) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue