From: notmasteryet Date: Sun, 2 Oct 2011 22:35:59 +0000 (-0500) Subject: Set default colors to avoid invalid strokeStyle or fillStyle warnings X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3c536c211a6d373e3698a755864b156a84045f33;p=pdf.js.git Set default colors to avoid invalid strokeStyle or fillStyle warnings --- diff --git a/pdf.js b/pdf.js index ae89849..27e6537 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; }