Browse Source

Fix jsdoc comment; remove resources dict from type3 properties

Yury Delendik 13 years ago
parent
commit
6bf640260f
  1. 7
      src/api.js
  2. 1
      src/evaluator.js
  3. 1
      src/fonts.js

7
src/api.js

@ -193,7 +193,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() { @@ -193,7 +193,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
* canvasContext(required): A 2D context of a DOM Canvas object.,
* textLayer(optional): An object that has beginLayout, endLayout, and
* appendText functions.
* }
* }.
* @return {Promise} A promise that is resolved when the page finishes
* rendering.
*/
@ -415,6 +415,11 @@ var WorkerTransport = (function WorkerTransportClosure() { @@ -415,6 +415,11 @@ var WorkerTransport = (function WorkerTransportClosure() {
var fakeWorker = {
postMessage: function WorkerTransport_postMessage(obj) {
fakeWorker.onmessage({data: obj});
try {
testF.contentWindow.postMessage(obj, "*");
} catch(e) {
debugger;
}
},
terminate: function WorkerTransport_terminate() {}
};

1
src/evaluator.js

@ -862,7 +862,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -862,7 +862,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
properties.coded = true;
var charProcs = dict.get('CharProcs').getAll();
var fontResources = dict.get('Resources') || resources;
properties.resources = fontResources;
properties.charProcOperatorList = {};
for (var key in charProcs) {
var glyphStream = charProcs[key];

1
src/fonts.js

@ -766,7 +766,6 @@ var Font = (function FontClosure() { @@ -766,7 +766,6 @@ var Font = (function FontClosure() {
this.name = name;
this.coded = properties.coded;
this.charProcOperatorList = properties.charProcOperatorList;
this.resources = properties.resources;
this.sizes = [];
var names = name.split('+');

Loading…
Cancel
Save