From 7bbbd8c7d9661e78d5ce1d1ea286103b813968d1 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Fri, 13 Mar 2015 21:51:50 +0000 Subject: [PATCH] PDF.js version 1.0.1207 --- bower.json | 2 +- build/pdf.combined.js | 14 +++++++++++--- build/pdf.js | 14 +++++++++++--- build/pdf.worker.js | 4 ++-- package.json | 2 +- web/compatibility.js | 10 ++++++++++ 6 files changed, 36 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index 250ab05ee..40230417c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1205", + "version": "1.0.1207", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 8280f4998..99c4ec6ed 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1205'; -PDFJS.build = '1fb1a99'; +PDFJS.version = '1.0.1207'; +PDFJS.build = '72cfa36'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1632,7 +1632,7 @@ PDFJS.cMapUrl = (PDFJS.cMapUrl === undefined ? null : PDFJS.cMapUrl); */ PDFJS.cMapPacked = PDFJS.cMapPacked === undefined ? false : PDFJS.cMapPacked; -/* +/** * By default fonts are converted to OpenType fonts and loaded via font face * rules. If disabled, the font will be rendered using a built in font renderer * that constructs the glyphs with primitive path commands. @@ -1722,6 +1722,14 @@ PDFJS.disableCreateObjectURL = (PDFJS.disableCreateObjectURL === undefined ? PDFJS.disableWebGL = (PDFJS.disableWebGL === undefined ? true : PDFJS.disableWebGL); +/** + * Disables fullscreen support, and by extension Presentation Mode, + * in browsers which support the fullscreen API. + * @var {boolean} + */ +PDFJS.disableFullscreen = (PDFJS.disableFullscreen === undefined ? + false : PDFJS.disableFullscreen); + /** * Enables CSS only zooming. * @var {boolean} diff --git a/build/pdf.js b/build/pdf.js index 58169ef0a..6ce5934f4 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1205'; -PDFJS.build = '1fb1a99'; +PDFJS.version = '1.0.1207'; +PDFJS.build = '72cfa36'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1632,7 +1632,7 @@ PDFJS.cMapUrl = (PDFJS.cMapUrl === undefined ? null : PDFJS.cMapUrl); */ PDFJS.cMapPacked = PDFJS.cMapPacked === undefined ? false : PDFJS.cMapPacked; -/* +/** * By default fonts are converted to OpenType fonts and loaded via font face * rules. If disabled, the font will be rendered using a built in font renderer * that constructs the glyphs with primitive path commands. @@ -1722,6 +1722,14 @@ PDFJS.disableCreateObjectURL = (PDFJS.disableCreateObjectURL === undefined ? PDFJS.disableWebGL = (PDFJS.disableWebGL === undefined ? true : PDFJS.disableWebGL); +/** + * Disables fullscreen support, and by extension Presentation Mode, + * in browsers which support the fullscreen API. + * @var {boolean} + */ +PDFJS.disableFullscreen = (PDFJS.disableFullscreen === undefined ? + false : PDFJS.disableFullscreen); + /** * Enables CSS only zooming. * @var {boolean} diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 6aa5fb3bf..0128580eb 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1205'; -PDFJS.build = '1fb1a99'; +PDFJS.version = '1.0.1207'; +PDFJS.build = '72cfa36'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index f4c76771c..b38ade3ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1205", + "version": "1.0.1207", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/compatibility.js b/web/compatibility.js index 424d5af32..00429dded 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -562,3 +562,13 @@ if (typeof PDFJS === 'undefined') { PDFJS.maxCanvasPixels = 5242880; } })(); + +// Disable fullscreen support for certain problematic configurations. +// Support: IE11+ (when embedded). +(function checkFullscreenSupport() { + var isEmbeddedIE = (navigator.userAgent.indexOf('Trident') >= 0 && + window.parent !== window); + if (isEmbeddedIE) { + PDFJS.disableFullscreen = true; + } +})();