From 3c536c211a6d373e3698a755864b156a84045f33 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Sun, 2 Oct 2011 17:35:59 -0500 Subject: [PATCH] Set default colors to avoid invalid strokeStyle or fillStyle warnings --- pdf.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdf.js b/pdf.js index ae8984907..27e65370d 100644 --- a/pdf.js +++ b/pdf.js @@ -4884,6 +4884,9 @@ var CanvasExtraState = (function canvasExtraState() { this.strokeColorSpaceObj = null; this.fillColorObj = null; this.strokeColorObj = null; + // Default fore and background colors + this.fillColor = "#000000"; + this.strokeColor = "#000000"; this.old = old; }