From b10e5849c36c150e7683c23107285b586d38a774 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Thu, 14 May 2015 11:53:45 +0100 Subject: [PATCH] PDF.js version 1.1.130 --- bower.json | 2 +- build/pdf.combined.js | 14 +++++++++++--- build/pdf.js | 4 ++-- build/pdf.worker.js | 14 +++++++++++--- package.json | 2 +- 5 files changed, 26 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index 5e43723f1..896d2187a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.128", + "version": "1.1.130", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 8ad8e65c1..fdffbb395 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.1.128'; -PDFJS.build = 'd484ebd'; +PDFJS.version = '1.1.130'; +PDFJS.build = '67816bd'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -11714,7 +11714,15 @@ var LinkAnnotation = (function LinkAnnotationClosure() { if (!isValidUrl(url, false)) { url = ''; } - data.url = url; + // According to ISO 32000-1:2008, section 12.6.4.7, + // URI should to be encoded in 7-bit ASCII. + // Some bad PDFs may have URIs in UTF-8 encoding, see Bugzilla 1122280. + try { + data.url = stringToUTF8String(url); + } catch (e) { + // Fall back to a simple copy. + data.url = url; + } } else if (linkType === 'GoTo') { data.dest = action.get('D'); } else if (linkType === 'GoToR') { diff --git a/build/pdf.js b/build/pdf.js index 91c2c8c8a..a113bd47a 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.1.128'; -PDFJS.build = 'd484ebd'; +PDFJS.version = '1.1.130'; +PDFJS.build = '67816bd'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 628149f78..33785ff38 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.1.128'; -PDFJS.build = 'd484ebd'; +PDFJS.version = '1.1.130'; +PDFJS.build = '67816bd'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5361,7 +5361,15 @@ var LinkAnnotation = (function LinkAnnotationClosure() { if (!isValidUrl(url, false)) { url = ''; } - data.url = url; + // According to ISO 32000-1:2008, section 12.6.4.7, + // URI should to be encoded in 7-bit ASCII. + // Some bad PDFs may have URIs in UTF-8 encoding, see Bugzilla 1122280. + try { + data.url = stringToUTF8String(url); + } catch (e) { + // Fall back to a simple copy. + data.url = url; + } } else if (linkType === 'GoTo') { data.dest = action.get('D'); } else if (linkType === 'GoToR') { diff --git a/package.json b/package.json index 4996d0a53..5834e37d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.128", + "version": "1.1.130", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",