Hello,
I am using the latest version of Aspose.Pdf.Facades.PdfFileEditor (6.8.0) to concatenate PDF documents. My code is:
Aspose.Pdf.License lic1 = new Aspose.Pdf.License();
lic1.SetLicense(@“Aspose.Total.lic”);
Aspose.Pdf.Facades.PdfFileEditor editor = new Aspose.Pdf.
Facades .PdfFileEditor();
Facades .PdfFileEditor();
string doc1 = @“C:\Test\Doc1.pdf”;
string doc2 = @“C:Test\Doc2.pdf”;
string outputDoc = @“C:\Test\Output.pdf”;
editor.Concatenate(doc1, doc2, outputDoc);
File.Delete(doc1);
Seemingly at random the line “File.Delete(doc1)” fails due to the following error. This is usually when the File grows above a certain size (20-30 MB approx). Sometimes it will recover then fail again.
This is the same issue that I raised in a previous version and it was resolved then:
System.IO.IOException: The process cannot access the file ‘C:\Test\Doc1.pdf’ because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
Has this issue been re-introduced?
Thanks,
James