It worked once but now every time I try it, I get the out of memory error below.: My DOCX file is only 112K in size and I have 11GB of available memory. Not sure where to go with this next. I attached the DOC file I am trying to convert.
Exception of type ‘System.OutOfMemoryException’ was thrown.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown.
Source Error:
<pre style=“font-family: Consolas, “Lucida Console”, monospace; font-size: 11pt; margin-top: 0px; margin-bottom: 0px; padding: 0.5em; line-height: 14pt;”>Line 1208: Dim strRTF As String = strTargetfile.Replace(".pdf", “.rtf”)
Line 1209: Dim doc As New Aspose.Words.Document(strDoc)
Line 1210: doc.Save(strRTF, Aspose.Words.SaveFormat.Rtf)
Line 1211:
Line 1212: CreateProgramPDf = True
Thank you for being patient. There is no direct way to save a PDF into RTF format. You can convert a PDF to DOC using Aspose.Pdf API, and then DOC to RTF using Aspose.Words API. We have tested your source Word document against the latest version 17.02 of Aspose.Words API. We’re unable to replicate the out of memory error on our side. Please download and use the latest 17.02 of Aspose.Words API. If this does not help, then please prepare a simple console application which reproduces an error on your side and attach its zip archive in this forum thread. We’ll investigate and reply you appropriately.