From 9fd99c8fbb40b0d9d09a1aaca5337e8162158d8d Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Wed, 6 Apr 2016 15:43:16 +0100 Subject: [PATCH] PDF.js version 1.4.197 - See mozilla/pdf.js@47688b655aa0b8dc06a4df6d950d1eaceecdb994 --- bower.json | 2 +- build/pdf.combined.js | 4 ++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 4 ++-- package.json | 2 +- web/pdf_viewer.js | 2 ++ 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index deb1752ef..282b87f56 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.194", + "version": "1.4.197", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 289959834..28d115b8d 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.194'; -var pdfjsBuild = 'f9a0dc1'; +var pdfjsVersion = '1.4.197'; +var pdfjsBuild = '47688b6'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.js b/build/pdf.js index 24b911bb9..176e1f274 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.194'; -var pdfjsBuild = 'f9a0dc1'; +var pdfjsVersion = '1.4.197'; +var pdfjsBuild = '47688b6'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 3a47e6d5e..b04b27a56 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.194'; -var pdfjsBuild = 'f9a0dc1'; +var pdfjsVersion = '1.4.197'; +var pdfjsBuild = '47688b6'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/package.json b/package.json index b3f7fc940..5be6e67c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.194", + "version": "1.4.197", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index eb8addfe9..ef6e1eef2 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -34,6 +34,8 @@ var MAX_AUTO_SCALE = 1.25; var SCROLLBAR_PADDING = 40; var VERTICAL_PADDING = 5; +var mozL10n = document.mozL10n || document.webL10n; + /** * Returns scale factor for the canvas. It makes sense for the HiDPI displays. * @return {Object} The object with horizontal (sx) and vertical (sy)