mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Fix another document reference in png.coffee
This commit is contained in:
parent
d927d0695c
commit
7da47a58f5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user