"When using Aspose.Pdf version 23.10.0 to convert to pdf/a1a like so:
using var logStream = new MemoryStream();
var options = new PdfFormatConversionOptions( PdfFormat.PDF_A_1A ){ LogStream = logStream };
using var document = new Aspose.Pdf.Document( myPdfMemoryStream );
document.Convert( options );
The file C:\Windows\system32\ConversionLog.xml is produced automatically by the component. Is there a way to prevent this file from being produced? Performing a conversion simultaneously using two or more threads (or processes) produces lock contention for that file, so Document.Convert() to pdf/a1a appears to not be a thread safe method call as it produces the error below:
The process cannot access the file ‘C:\Windows\system32\ConversionLog.xml’ because it is being used by another process
Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable
1 unixCreateMode)
at Aspose.Pdf.PdfFormatConversionOptions.#=zdzTl_P3xHggv()
at Aspose.Pdf.Document.#=znlwNvPM=(PdfFormatConversionOptions #=ze_om$e0=, Boolean #=zOSwyATArvdiD)
at Crawfordtech.Documents.Converter.SetPdfFormat(String outputFormat, MemoryStream pdf)"
Is there a way we can work around this?