Open thbl opened 6 years ago
It's sync execution, so you can add the callback in your wrapped function. You can wrap the hummusJS like:
function pdfWriterWrapFunction(cb){
const pdfWriter = ...
...
pdfWriter.end()
if(cb) return cb();
}
okay thanks ! :)
How can i make a callback, when pdfWriter.end(); is done ?