mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Allow setting compress option from constructor
This commit is contained in:
parent
f2f56fbba5
commit
16e00aa9e2
@ -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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user