diff --git a/bower.json b/bower.json index b6290f8ca..7e619eb05 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.106", + "version": "1.3.108", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index a02287624..e7456370e 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.106'; -PDFJS.build = '49437c8'; +PDFJS.version = '1.3.108'; +PDFJS.build = '65de3d6'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5904,11 +5904,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { return this.cachedGetSinglePixelWidth; }, getCanvasPosition: function CanvasGraphics_getCanvasPosition(x, y) { - var transform = this.ctx.mozCurrentTransform; - return [ - transform[0] * x + transform[2] * y + transform[4], - transform[1] * x + transform[3] * y + transform[5] - ]; + var transform = this.ctx.mozCurrentTransform; + return [ + transform[0] * x + transform[2] * y + transform[4], + transform[1] * x + transform[3] * y + transform[5] + ]; } }; @@ -14156,12 +14156,8 @@ var JpegImage = (function jpegImage() { function decodeScan(data, offset, frame, components, resetInterval, spectralStart, spectralEnd, successivePrev, successive) { - var precision = frame.precision; - var samplesPerLine = frame.samplesPerLine; - var scanLines = frame.scanLines; var mcusPerLine = frame.mcusPerLine; var progressive = frame.progressive; - var maxH = frame.maxH, maxV = frame.maxV; var startOffset = offset, bitsData = 0, bitsCount = 0; @@ -14669,10 +14665,9 @@ var JpegImage = (function jpegImage() { frame.mcusPerColumn = mcusPerColumn; } - var offset = 0, length = data.length; + var offset = 0; var jfif = null; var adobe = null; - var pixels = null; var frame, resetInterval; var quantizationTables = []; var huffmanTablesAC = [], huffmanTablesDC = []; @@ -19879,7 +19874,7 @@ var Jbig2Image = (function Jbig2ImageClosure() { delete pageInfo.height; } var pageSegmentFlags = data[position + 16]; - var pageStripingInformatiom = readUint16(data, position + 17); + var pageStripingInformation = readUint16(data, position + 17); pageInfo.lossless = !!(pageSegmentFlags & 1); pageInfo.refinement = !!(pageSegmentFlags & 2); pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1; @@ -20162,8 +20157,6 @@ var JpxImage = (function JpxImageClosure() { case 0x636F6C72: // 'colr' // Colorspaces are not used, the CS from the PDF is used. var method = data[position]; - var precedence = data[position + 1]; - var approximation = data[position + 2]; if (method === 1) { // enumerated colorspace var colorspace = readUint32(data, position + 3); @@ -40285,7 +40278,7 @@ var PostScriptCompiler = (function PostScriptCompilerClosure() { var instructions = []; var inputSize = domain.length >> 1, outputSize = range.length >> 1; var lastRegister = 0; - var n, j, min, max; + var n, j; var num1, num2, ast1, ast2, tmpVar, item; for (i = 0; i < inputSize; i++) { stack.push(new AstArgument(i, domain[i * 2], domain[i * 2 + 1])); @@ -46185,7 +46178,6 @@ var stringToPDFString = sharedUtil.stringToPDFString; var stringToUTF8String = sharedUtil.stringToUTF8String; var warn = sharedUtil.warn; var Dict = corePrimitives.Dict; -var Name = corePrimitives.Name; var isDict = corePrimitives.isDict; var isName = corePrimitives.isName; var Stream = coreStream.Stream; diff --git a/build/pdf.js b/build/pdf.js index a919b04e0..6845a60d7 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.106'; -PDFJS.build = '49437c8'; +PDFJS.version = '1.3.108'; +PDFJS.build = '65de3d6'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5905,11 +5905,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { return this.cachedGetSinglePixelWidth; }, getCanvasPosition: function CanvasGraphics_getCanvasPosition(x, y) { - var transform = this.ctx.mozCurrentTransform; - return [ - transform[0] * x + transform[2] * y + transform[4], - transform[1] * x + transform[3] * y + transform[5] - ]; + var transform = this.ctx.mozCurrentTransform; + return [ + transform[0] * x + transform[2] * y + transform[4], + transform[1] * x + transform[3] * y + transform[5] + ]; } }; diff --git a/build/pdf.worker.js b/build/pdf.worker.js index f0e3975fd..8de0c21ae 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.106'; -PDFJS.build = '49437c8'; +PDFJS.version = '1.3.108'; +PDFJS.build = '65de3d6'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -6779,12 +6779,8 @@ var JpegImage = (function jpegImage() { function decodeScan(data, offset, frame, components, resetInterval, spectralStart, spectralEnd, successivePrev, successive) { - var precision = frame.precision; - var samplesPerLine = frame.samplesPerLine; - var scanLines = frame.scanLines; var mcusPerLine = frame.mcusPerLine; var progressive = frame.progressive; - var maxH = frame.maxH, maxV = frame.maxV; var startOffset = offset, bitsData = 0, bitsCount = 0; @@ -7292,10 +7288,9 @@ var JpegImage = (function jpegImage() { frame.mcusPerColumn = mcusPerColumn; } - var offset = 0, length = data.length; + var offset = 0; var jfif = null; var adobe = null; - var pixels = null; var frame, resetInterval; var quantizationTables = []; var huffmanTablesAC = [], huffmanTablesDC = []; @@ -12502,7 +12497,7 @@ var Jbig2Image = (function Jbig2ImageClosure() { delete pageInfo.height; } var pageSegmentFlags = data[position + 16]; - var pageStripingInformatiom = readUint16(data, position + 17); + var pageStripingInformation = readUint16(data, position + 17); pageInfo.lossless = !!(pageSegmentFlags & 1); pageInfo.refinement = !!(pageSegmentFlags & 2); pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1; @@ -12785,8 +12780,6 @@ var JpxImage = (function JpxImageClosure() { case 0x636F6C72: // 'colr' // Colorspaces are not used, the CS from the PDF is used. var method = data[position]; - var precedence = data[position + 1]; - var approximation = data[position + 2]; if (method === 1) { // enumerated colorspace var colorspace = readUint32(data, position + 3); @@ -32908,7 +32901,7 @@ var PostScriptCompiler = (function PostScriptCompilerClosure() { var instructions = []; var inputSize = domain.length >> 1, outputSize = range.length >> 1; var lastRegister = 0; - var n, j, min, max; + var n, j; var num1, num2, ast1, ast2, tmpVar, item; for (i = 0; i < inputSize; i++) { stack.push(new AstArgument(i, domain[i * 2], domain[i * 2 + 1])); @@ -38808,7 +38801,6 @@ var stringToPDFString = sharedUtil.stringToPDFString; var stringToUTF8String = sharedUtil.stringToUTF8String; var warn = sharedUtil.warn; var Dict = corePrimitives.Dict; -var Name = corePrimitives.Name; var isDict = corePrimitives.isDict; var isName = corePrimitives.isName; var Stream = coreStream.Stream; diff --git a/package.json b/package.json index 6177179f6..4cd727087 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.106", + "version": "1.3.108", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",