You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've run into a bug where file streams are not closing on using appendPage.
// create a merged pdf
var pdfDoc = new HummusRecipe('new', appRoot + '\\labels\\full_' + params.orderId + '.pdf');
for (p=0; p<pdfFiles.length; p++){
pdfDoc.appendPage(pdfFiles[p], p).endPage();
}
await pdfDoc.endPDF();
I immediately do a cleanup on the files that were merged into one and each time the last file merged files to unlink() properly because it's file stream is still open and not properly cleaned up by hummus-recipe.
If I add a pause of 1000 ms then it fixes the error but something is not immediately releasing the file stream after .endPage().
Please fix this bug.
The text was updated successfully, but these errors were encountered:
Hi, I've run into a bug where file streams are not closing on using appendPage.
I immediately do a cleanup on the files that were merged into one and each time the last file merged files to unlink() properly because it's file stream is still open and not properly cleaned up by hummus-recipe.
If I add a pause of 1000 ms then it fixes the error but something is not immediately releasing the file stream after .endPage().
Please fix this bug.
The text was updated successfully, but these errors were encountered: