PDFDocument#write callback support

This commit is contained in:
Devon Govett 2011-07-12 09:43:07 -04:00
parent 6a9d2f8fff
commit 2d4d2adf76

View File

@ -80,8 +80,8 @@ class PDFDocument
@page.content.add str
return this # make chaining possible
write: (filename) ->
fs.writeFile filename, @output(), 'binary'
write: (filename, callback) ->
fs.writeFile filename, @output(), 'binary', callback
output: ->
out = []