From 6bf640260fec1ee16226613e50d96f58fd4bfc08 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Sat, 14 Apr 2012 17:52:49 -0700 Subject: [PATCH] Fix jsdoc comment; remove resources dict from type3 properties --- src/api.js | 7 ++++++- src/evaluator.js | 1 - src/fonts.js | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/api.js b/src/api.js index 996dd1b42..0e27d2369 100644 --- a/src/api.js +++ b/src/api.js @@ -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() { var fakeWorker = { postMessage: function WorkerTransport_postMessage(obj) { fakeWorker.onmessage({data: obj}); + try { + testF.contentWindow.postMessage(obj, "*"); + } catch(e) { + debugger; + } }, terminate: function WorkerTransport_terminate() {} }; diff --git a/src/evaluator.js b/src/evaluator.js index 50274a9ed..c57e291c0 100644 --- a/src/evaluator.js +++ b/src/evaluator.js @@ -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]; diff --git a/src/fonts.js b/src/fonts.js index 7fdab8fbb..7693f5839 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -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('+');