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);
Unknown heap type: SmartAssemblySystem.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: SmartAssemblySystem.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 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