Hi,
Thank you for your interest in Syncfusion products.
Please use the Close (true) to close the file completely and now you can delete the file.
Difference for Close and Close (true) method: Doc.Close() -> Closes the document. Releases all common resources.
Doc.Close(true) -->if set to true the document should be disposed completely.
Please refers to the below code snippet to merge and close the document completely:
1. Method 1:
Dim s() As String = { "..\..\Original.pdf", "..\..\Appended.pdf" }
Dim doc1 As PdfDocument = PdfDocument.Merge(s)
doc1.Save("sample.pdf")
doc.Close(True)
2. Method 1:
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("..\..\Original.pdf")
Dim doc1 As PdfLoadedDocument = New PdfLoadedDocument("..\..\Appended.pdf")
doc.ImportPage(doc1, 0)
doc1.Save("sample.pdf")
doc.Close(True)
doc1.Close(True)
Please refers to the below link for Online class reference:
http://help.syncfusion.com/cr_71/-1-12-index.aspx If you still able to reproduce the issue, please provide your PDF documents to reproduce the issue in our end. This would be helpful for us to reproduce and investigate more on this issue.
Best Regards,
Bhuvana