Saving last work

This commit is contained in:
Julian Viereck 2011-09-06 15:02:15 -07:00
parent 5c1262e13b
commit 89167c0b40
2 changed files with 7 additions and 1 deletions

6
pdf.js
View File

@ -4212,6 +4212,7 @@ var PartialEvaluator = (function() {
var patterns = xref.fetchIfRef(resources.get('Pattern')) || new Dict();
var parser = new Parser(new Lexer(stream), false);
var args = [], argsArray = [], fnArray = [], obj;
var res = resources;
while (!IsEOF(obj = parser.getObj())) {
if (IsCmd(obj)) {
@ -4331,9 +4332,14 @@ var PartialEvaluator = (function() {
case "setFillColorSpace":
case "setStrokeColorSpace":
args = [ ColorSpace.parseRaw(args[0], xref, resources) ];
break;
case "shadingFill":
break;
}
var skips = [];
//var skips = ["setFillColorSpace", "setFillColor", "setStrokeColorSpace", "setStrokeColor"];

View File

@ -52,7 +52,7 @@ var handler = new MessageHandler("worker", {
console.log("about to send page", pageNum);
if (false /* show used commands */) {
if (true /* show used commands */) {
// Make a copy of the fnArray and show all cmds it has.
var fnArray = preCompilation.fnArray.slice(0).sort();
for (var i = 0; i < fnArray.length; true) {