|
@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
|
|
}
|
|
|
|
|
|
-PDFJS.version = '1.1.140';
|
|
|
-PDFJS.build = '9deae0e';
|
|
|
+PDFJS.version = '1.1.143';
|
|
|
+PDFJS.build = '7da9626';
|
|
|
|
|
|
(function pdfjsWrapper() {
|
|
|
// Use strict in our context only - users might not want it
|
|
@@ -23776,7 +23776,10 @@ var Font = (function FontClosure() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (!potentialTable) {
|
|
|
+ if (potentialTable) {
|
|
|
+ font.pos = start + potentialTable.offset;
|
|
|
+ }
|
|
|
+ if (!potentialTable || font.peekByte() === -1) {
|
|
|
warn('Could not find a preferred cmap table.');
|
|
|
return {
|
|
|
platformId: -1,
|
|
@@ -23786,7 +23789,6 @@ var Font = (function FontClosure() {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- font.pos = start + potentialTable.offset;
|
|
|
var format = font.getUint16();
|
|
|
var length = font.getUint16();
|
|
|
var language = font.getUint16();
|
|
@@ -24221,6 +24223,9 @@ var Font = (function FontClosure() {
|
|
|
default:
|
|
|
warn('Unknown/unsupported post table version ' + version);
|
|
|
valid = false;
|
|
|
+ if (properties.defaultEncoding) {
|
|
|
+ glyphNames = properties.defaultEncoding;
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
properties.glyphNames = glyphNames;
|