Following published code found within this site for appending PDF files together. Aspose Document object does not release the file handle until the application is closed.
Document targetDoc = new Document();
List inputDocs = new List();
for (int i = 0; i < inputDocs.Count; i++)
inputDoc = new Document(inputDocs[i]);
// Add the pages of the source documents to the target document
targetDoc.Save(myDir + “merged.pdf”);
DELETE “merged.pdf” FAILS HERE
The file “merged.pdf” is in use by the application. I have also tried to targetDoc.Dispose() and inputDoc.Dispose() but it still holds on to the targetDoc file.