Closed martinjuhasz closed 10 years ago
Hey there,
I love the idea of moving to Blocks here. Just adding a few comments of things I think it would be nice to do also before merging
Thanks!
In fact it's just great! Any idea of other nice-to-have?
f.e. for me, it's not really necessary to write the pdf to a file, but currently there is no way without it. for me, it would be much better to just get the nsdata of the pdf to avoid dealing with naming a pdf right and deleting it after the job has finished (i always need to generate a new pdf, show it in a webview, which could be done directly with nsdata, and attach it to an email, which also is done directly with NSData).
What would you think of this? https://github.com/iclems/iOS-htmltopdf/pull/14
Basically enables you not to provide a file path
My guess is that the success callback block could also be called with the NSData value as argument, what do you think?
i added block syntax and updated the demo to reflect this changes.