When attempting to convert HTML to PDF using the Aspose.Pdf.Generator.Pdf object, running two conversions in parallel tasks (each creating their own Pdf object) results in either an 'Object is currently in use elsewhere' or 'key is already present in dictionary'.
Doing the two conversion synchronously converts correctly. The same two conversion using a Task.Run wrapper and awaiting each task, also converts correctly. In both cases, the 1st conversion completes before a new Pdf object is created.
I went through and reviewed this thread:
http://www.aspose.com/community/forums/thread/492825/object-is-currently-in-use-elsewhere-error.aspx
And it appears that Pdf objects should be thread safe.
I'm attaching recreation tests written in Nunit (renamed from .cs to .txt) . I've also gone through and made sure to update Aspose.Pdf to the latest version 10.5.1.0 from the nuget packages.
Mike