Browse Source

PDF.js version 1.4.131 - See mozilla/pdf.js@147598417ceb3df175b3d89c0e4ac4db49359c88

master v1.4.131
Pdf Bot 9 years ago
parent
commit
1a4ce983f2
  1. 2
      bower.json
  2. 13
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 13
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.4.129", "version": "1.4.131",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

13
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.4.129'; var pdfjsVersion = '1.4.131';
var pdfjsBuild = '4065a21'; var pdfjsBuild = '1475984';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -34464,6 +34464,11 @@ var Font = (function FontClosure() {
function int16(b0, b1) { function int16(b0, b1) {
return (b0 << 8) + b1; return (b0 << 8) + b1;
} }
function signedInt16(b0, b1) {
var value = (b0 << 8) + b1;
return value & (1 << 15) ? value - 0x10000 : value;
}
function int32(b0, b1, b2, b3) { function int32(b0, b1, b2, b3) {
return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3; return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
@ -35982,9 +35987,9 @@ var Font = (function FontClosure() {
var metricsOverride = { var metricsOverride = {
unitsPerEm: int16(tables['head'].data[18], tables['head'].data[19]), unitsPerEm: int16(tables['head'].data[18], tables['head'].data[19]),
yMax: int16(tables['head'].data[42], tables['head'].data[43]), yMax: int16(tables['head'].data[42], tables['head'].data[43]),
yMin: int16(tables['head'].data[38], tables['head'].data[39]) - 0x10000, yMin: signedInt16(tables['head'].data[38], tables['head'].data[39]),
ascent: int16(tables['hhea'].data[4], tables['hhea'].data[5]), ascent: int16(tables['hhea'].data[4], tables['hhea'].data[5]),
descent: int16(tables['hhea'].data[6], tables['hhea'].data[7]) - 0x10000 descent: signedInt16(tables['hhea'].data[6], tables['hhea'].data[7])
}; };
// PDF FontDescriptor metrics lie -- using data from actual font. // PDF FontDescriptor metrics lie -- using data from actual font.

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.4.129'; var pdfjsVersion = '1.4.131';
var pdfjsBuild = '4065a21'; var pdfjsBuild = '1475984';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

13
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.4.129'; var pdfjsVersion = '1.4.131';
var pdfjsBuild = '4065a21'; var pdfjsBuild = '1475984';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -26484,6 +26484,11 @@ var Font = (function FontClosure() {
function int16(b0, b1) { function int16(b0, b1) {
return (b0 << 8) + b1; return (b0 << 8) + b1;
} }
function signedInt16(b0, b1) {
var value = (b0 << 8) + b1;
return value & (1 << 15) ? value - 0x10000 : value;
}
function int32(b0, b1, b2, b3) { function int32(b0, b1, b2, b3) {
return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3; return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
@ -28002,9 +28007,9 @@ var Font = (function FontClosure() {
var metricsOverride = { var metricsOverride = {
unitsPerEm: int16(tables['head'].data[18], tables['head'].data[19]), unitsPerEm: int16(tables['head'].data[18], tables['head'].data[19]),
yMax: int16(tables['head'].data[42], tables['head'].data[43]), yMax: int16(tables['head'].data[42], tables['head'].data[43]),
yMin: int16(tables['head'].data[38], tables['head'].data[39]) - 0x10000, yMin: signedInt16(tables['head'].data[38], tables['head'].data[39]),
ascent: int16(tables['hhea'].data[4], tables['hhea'].data[5]), ascent: int16(tables['hhea'].data[4], tables['hhea'].data[5]),
descent: int16(tables['hhea'].data[6], tables['hhea'].data[7]) - 0x10000 descent: signedInt16(tables['hhea'].data[6], tables['hhea'].data[7])
}; };
// PDF FontDescriptor metrics lie -- using data from actual font. // PDF FontDescriptor metrics lie -- using data from actual font.

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.4.129", "version": "1.4.131",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save