From 7da47a58f50198bdc5649d8d74f64bdad1a720b1 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 25 Oct 2015 10:33:35 -0700 Subject: [PATCH] Fix another document reference in png.coffee --- lib/image/png.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/image/png.coffee b/lib/image/png.coffee index ac9f1f0..11090ed 100644 --- a/lib/image/png.coffee +++ b/lib/image/png.coffee @@ -34,7 +34,7 @@ class PNGImage @obj.data['ColorSpace'] = @image.colorSpace else # embed the color palette in the PDF as an object stream - palette = document.ref() + palette = @document.ref() palette.end new Buffer @image.palette # build the color space array for the image