mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Reorder lines. Oops!
This commit is contained in:
parent
2d4d2adf76
commit
7acdb36abe
@ -30,8 +30,8 @@ class PDFReference
|
||||
|
||||
finalize: (compress = false) ->
|
||||
# cache the finalized stream
|
||||
data = @stream.join '\n'
|
||||
if @stream
|
||||
data = @stream.join '\n'
|
||||
if compress
|
||||
compressedData = zlib.deflate new Buffer(data)
|
||||
@finalizedStream = compressedData.toString 'binary'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user