Allow setting compress option from constructor

This commit is contained in:
Devon Govett 2014-03-29 19:45:41 -07:00
parent f2f56fbba5
commit 16e00aa9e2

View File

@ -17,7 +17,7 @@ class PDFDocument extends stream.Readable
@version = 1.3
# Whether streams should be compressed
@compress = yes
@compress = @options.compress ? yes
# The PDF object store
@_offsets = []