PDF to Html/Doc Convert Exception on CentOS-5.8 with mono-2.10.9

Hi,

I'm evaluating Aspose.Pdf on Linux with MONO.

I'm doing some test for converting PDF to HTML or DOC document.
The test program runs well on Windows OS.
But it failed with the following exception on CenOS-5.8 with Mono-2.10.9.

Here is the code I used for testing:

...

Aspose.Pdf.Document pdf = new Aspose.Pdf.Document("test.pdf");

pdf.Save("test.doc", SaveFormat.Doc);

---------------------------
exception:
Unknown heap type: SmartAssembly

System.NullReferenceException: Object reference not set to an instance of an object
at …? (Aspose.Pdf.Document , System.IO.Stream , Aspose.Pdf.DocSaveOptions ) [0x00000] in :0
at Aspose.Pdf.Document.Save (System.IO.Stream outputStream, Aspose.Pdf.SaveOptions options) [0x00000] in :0
at Aspose.Pdf.Document.Save (System.IO.Stream outputStream, Aspose.Pdf.SaveOptions options) [0x00000] in :0
at Aspose.Pdf.Document.Save (System.String outputFileName, Aspose.Pdf.SaveOptions options) [0x00000] in :0
at DocConvert.Program.Run (System.String[] args) [0x00000] in :0


Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(“test.pdf”);

pdf.Save(“test.html”, SaveFormat.Html);

----------------------------

exception:

Unknown heap type: SmartAssembly
System.ObjectDisposedException: The object was used after being disposed.
at Aspose.Pdf.Document.? () [0x00000] in :0
at Aspose.Pdf.Document.get_Pages () [0x00000] in :0
at …? (Aspose.Pdf.Document , System.String , Aspose.Pdf.HtmlSaveOptions ) [0x00000] in :0
at Aspose.Pdf.HtmlSaveOptions…ctor (HtmlDocumentType documentType, Boolean fixedLayout) [0x00000] in :0
at Aspose.Pdf.Document.Save (System.String outputFileName, Aspose.Pdf.SaveOptions options) [0x00000] in :0
at DocConvert.Program.Run (System.String[] args) [0x00000] in :0


The Aspose.Pdf.dll(net2.0) version is 8.0.0.0 .
The sample pdf document is attached.

I’d like to know if I’m doing anything wrong or if Aspose.Pdf is actually not supported on Linux with MONO. If not, is there any plan to do it?

Thanks in advance,

Ryouma

Hi Ryouma,


Thanks for using our products.

I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-35405. We
will investigate this issue in details and will keep you updated on the status
of a correction. <o:p></o:p>

We apologize for your inconvenience.