Getting the following error when merging/saving files
A call to Spire.pdf.pdfdocument.savetofile failed with this message: The requested operation cannot be performed on a file with a user-mapped section open.
Code Calls
spirePDF := spirePDF.PdfDocument;
IF FileNo <> 1 THEN
spirePDF.LoadFromFile(OutputFile);
spirePDF2 := spirePDF2.PdfDocument;
spirePDF2.LoadFromFile(InputFile);
spirePDF.AppendPage(spirePDF2);
spirePDF.SaveToFile(OutputFile);
spirePDF.Close;
spirePDF2.Close;