Save PDF as Doc

I am getting the following exception when performing a seemingly simple conversion from PDF to Doc.

Here is my code:

Imports Aspose.Pdf


Public Sub convertPDFToDoc()
Dim pdfFile As New Aspose.Pdf.Document(testDir & “fromXLSToPDF.pdf”)
pdfFile.Save(testDir & “fromPDFToDoc.doc”, Aspose.Pdf.SaveFormat.Doc)
End Sub

I have also tried to save the document in the format “docx”.


[NullReferenceException: Object reference not set to an instance of an object.]
..(Char ) +81
..‹(String ) +214
..‹(String ) +42
..(„ ) +236
.‹.‹( , Œ , ‰ ) +1096
..‹( , Œ ) +96
.“.Œ( , ArrayList ) +323
.“.‹( , ArrayList ) +101
.“.(‚ , , ) +119
..‹(Document , Stream , DocSaveOptions ) +1345
Aspose.Pdf.Document.Save(Stream outputStream, SaveOptions options) +134
Aspose.Pdf.Document.Save(Stream outputStream, SaveFormat format) +381
Aspose.Pdf.Document.Save(String outputFileName, SaveFormat format) +123
TestProject.AsposeDocuments.convertPDFToDoc() in C:\Documents and Settings\Hope\My Documents\Visual Studio 2010\Projects\TestProject\TestProject\App_Code\AsposeDocuments.vb:172
TestProject.AsposeSamples.testPDFToXls(Object sender, EventArgs e) in C:\Documents and Settings\Hope\My Documents\Visual Studio 2010\Projects\TestProject\TestProject\AsposeSamples.aspx.vb:46
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

I am using version 8.0 of Aspose Total for .Net

I have searched for aid in the documentation but I find none. Has anyone seen this before with Aspose PDF? What can be done?

Thank you,

Hope

Hi Hope,


Thanks for your inquiry. Can you please double check the license implementation in your code? If you are evaluating our product without a license then please make a request for 30 days temporary license to evaluate our product without any limitation. Hopefully your issue will be resolved. If issue persist then please share your source document here. So we will test it at our end and will provide you more information accordingly.


Please feel free to contact us for any further assistance.


Best Regards,