Browse Source

PDF.js version 1.0.494

master v1.0.494
Yury Delendik 10 years ago
parent
commit
491b6a66e0
  1. 2
      bower.json
  2. 30
      build/pdf.combined.js
  3. 11
      build/pdf.js
  4. 23
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.492", "version": "1.0.494",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

30
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.492'; PDFJS.version = '1.0.494';
PDFJS.build = '62e6265'; PDFJS.build = '1e21bac';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -4474,11 +4474,16 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
continue; continue;
} }
var operatorList = font.charProcOperatorList[glyph.operatorListId];
if (!operatorList) {
warn('Type3 character \"' + glyph.operatorListId +
'\" is not available');
continue;
}
this.processingType3 = glyph; this.processingType3 = glyph;
this.save(); this.save();
ctx.scale(fontSize, fontSize); ctx.scale(fontSize, fontSize);
ctx.transform.apply(ctx, fontMatrix); ctx.transform.apply(ctx, fontMatrix);
var operatorList = font.charProcOperatorList[glyph.operatorListId];
this.executeOperatorList(operatorList); this.executeOperatorList(operatorList);
this.restore(); this.restore();
@ -23198,14 +23203,17 @@ var TranslatedFont = (function TranslatedFontClosure() {
var glyphStream = charProcs[key]; var glyphStream = charProcs[key];
var operatorList = new OperatorList(); var operatorList = new OperatorList();
return evaluator.getOperatorList(glyphStream, fontResources, return evaluator.getOperatorList(glyphStream, fontResources,
operatorList). operatorList).then(function () {
then(function () { charProcOperatorList[key] = operatorList.getIR();
charProcOperatorList[key] = operatorList.getIR();
// Add the dependencies to the parent operator list so they are
// Add the dependencies to the parent operator list so they are // resolved before sub operator list is executed synchronously.
// resolved before sub operator list is executed synchronously. parentOperatorList.addDependencies(operatorList.dependencies);
parentOperatorList.addDependencies(operatorList.dependencies); }, function (reason) {
}); warn('Type3 font resource \"' + key + '\" is not available');
var operatorList = new OperatorList();
charProcOperatorList[key] = operatorList.getIR();
});
}.bind(this, charProcKeys[i])); }.bind(this, charProcKeys[i]));
} }
this.type3Loaded = loadCharProcsPromise.then(function () { this.type3Loaded = loadCharProcsPromise.then(function () {

11
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.492'; PDFJS.version = '1.0.494';
PDFJS.build = '62e6265'; PDFJS.build = '1e21bac';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -4518,11 +4518,16 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
continue; continue;
} }
var operatorList = font.charProcOperatorList[glyph.operatorListId];
if (!operatorList) {
warn('Type3 character \"' + glyph.operatorListId +
'\" is not available');
continue;
}
this.processingType3 = glyph; this.processingType3 = glyph;
this.save(); this.save();
ctx.scale(fontSize, fontSize); ctx.scale(fontSize, fontSize);
ctx.transform.apply(ctx, fontMatrix); ctx.transform.apply(ctx, fontMatrix);
var operatorList = font.charProcOperatorList[glyph.operatorListId];
this.executeOperatorList(operatorList); this.executeOperatorList(operatorList);
this.restore(); this.restore();

23
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.492'; PDFJS.version = '1.0.494';
PDFJS.build = '62e6265'; PDFJS.build = '1e21bac';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -18344,14 +18344,17 @@ var TranslatedFont = (function TranslatedFontClosure() {
var glyphStream = charProcs[key]; var glyphStream = charProcs[key];
var operatorList = new OperatorList(); var operatorList = new OperatorList();
return evaluator.getOperatorList(glyphStream, fontResources, return evaluator.getOperatorList(glyphStream, fontResources,
operatorList). operatorList).then(function () {
then(function () { charProcOperatorList[key] = operatorList.getIR();
charProcOperatorList[key] = operatorList.getIR();
// Add the dependencies to the parent operator list so they are
// Add the dependencies to the parent operator list so they are // resolved before sub operator list is executed synchronously.
// resolved before sub operator list is executed synchronously. parentOperatorList.addDependencies(operatorList.dependencies);
parentOperatorList.addDependencies(operatorList.dependencies); }, function (reason) {
}); warn('Type3 font resource \"' + key + '\" is not available');
var operatorList = new OperatorList();
charProcOperatorList[key] = operatorList.getIR();
});
}.bind(this, charProcKeys[i])); }.bind(this, charProcKeys[i]));
} }
this.type3Loaded = loadCharProcsPromise.then(function () { this.type3Loaded = loadCharProcsPromise.then(function () {

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.492", "version": "1.0.494",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save