End the stream

This commit is contained in:
Devon Govett 2014-04-13 19:54:33 -07:00
parent 5efb4b7fc9
commit f9986cf15a

View File

@ -133,6 +133,7 @@ stream = doc.pipe(blobStream())
# add your content to the document here, as usual
# get a blob when you're done
doc.end()
stream.on 'finish', ->
# get a blob you can do whatever you like with
blob = stream.toBlob('application/pdf')