Callback after PDF creation

Hello,

As I was using your solution, I found that it works ok in command line, since you don't need to have the PDF ready before you return from the call to fillpdf, however when using online in a web page, you have to know when you're done in order to read and produce the PDF out to the client.

I added a callback paramater to receive a call back to specified function, and then return the created PDF correctly when it is completed.

Hope this is useful and you would consider it.

Regards,

Gabriel Medina.