Fix another document reference in png.coffee

This commit is contained in:
Devon Govett 2015-10-25 10:33:35 -07:00
parent d927d0695c
commit 7da47a58f5

View File

@ -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