diff --git a/bower.json b/bower.json index 496a907c1..f72c3c8c8 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.207", + "version": "1.1.209", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 6550f6d02..b13486b17 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.207'; -PDFJS.build = 'c8fd9c8'; +PDFJS.version = '1.1.209'; +PDFJS.build = 'd7e6490'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -12151,7 +12151,10 @@ var PDFFunction = (function PDFFunctionClosure() { var rmin = encode[2 * i]; var rmax = encode[2 * i + 1]; - tmpBuf[0] = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin); + // Prevent the value from becoming NaN as a result + // of division by zero (fixes issue6113.pdf). + tmpBuf[0] = dmin === dmax ? rmin : + rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin); // call the appropriate function fns[i](tmpBuf, 0, dest, destOffset); diff --git a/build/pdf.js b/build/pdf.js index bb3f8dd0f..5bb8620a4 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.207'; -PDFJS.build = 'c8fd9c8'; +PDFJS.version = '1.1.209'; +PDFJS.build = 'd7e6490'; (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 bee269819..59a36beed 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.207'; -PDFJS.build = 'c8fd9c8'; +PDFJS.version = '1.1.209'; +PDFJS.build = 'd7e6490'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5798,7 +5798,10 @@ var PDFFunction = (function PDFFunctionClosure() { var rmin = encode[2 * i]; var rmax = encode[2 * i + 1]; - tmpBuf[0] = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin); + // Prevent the value from becoming NaN as a result + // of division by zero (fixes issue6113.pdf). + tmpBuf[0] = dmin === dmax ? rmin : + rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin); // call the appropriate function fns[i](tmpBuf, 0, dest, destOffset); diff --git a/package.json b/package.json index d074413a7..49ed9c733 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.207", + "version": "1.1.209", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",