Open GoNode5 opened 6 years ago
you should call outStream.close()
for the file pointer to be release (see here for reference). Note that the method is async, and allows you to provide a callback for when the file is truly closed.
thanks for your help (and wonderful component). I did eventually find it myself. inStream1.close(function(){}); inStream2.close(function(){}); outStream.close(function(){}); Not very elegant... Not sure if inStreams should be closed as well?
I have a problem that this (simplified) code seems not to close the created c.pdf. If I try to open the pdf while the server/nodejs is running, I get a an error with Foxit Reader: Encountered a sharing violation while accessing. As soon as I close the node.js, the problem is gone. node v8.7.0 / windows 10