Open MedinaGitHub opened 6 years ago
https://github.com/galkahana/HummusJS/blob/48066498a51cd25074ecce3a70db9b9775cb9fa6/PDFRStreamForFile.js#L51
How about to try with .close
?
let inStream1 = new hummus.PDFRStreamForFile('hola.pdf');
...
inStream1.close(()=>{
fs.unlinkSync('hola.pdf');
});