Hello,
I’m looking into purchasing Aspose.PDF, but I’ve encountered serious problems while testing it for conversion of PostScript into PDF.
When I run the example code (Aspose.Pdf.Examples.CSharp.RunExamples) and call PostscriptToPDF.Run() AS IS, trying to get it to load the sample PostScript file that came with the examples, the Document constructor throws the exception:
Arithmetic operation resulted in an overflow.
When I try to run it inside my own code, loading another PostScript file, the Document constructor simply hangs. If I run it inside the main thread I get an exception after a minute:
The CLR has been unable to transition from COM context to COM context for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages.
If I run it in another thread, the operation simply hangs forever.
The code I’m using:
var options = new PsLoadOptions();
Document doc = null;
try
{
doc =
new Document(@“C:\Windows\temp\test.ps”, options);
}
catch (Exception ex)
{
}
doc?.Save(@“C:\Windows\temp\test.pdf”);