I get System.OutOfMemoryException while saving a PDF as DOCX in Aspose.PDF version 10.6.0.0 and 10.7.0.0
I used the following code:
Using pdf As New Aspose.Pdf.Document(sourceFile.FullName)
Dim dso As New Aspose.Pdf.DocSaveOptions()
dso.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.Flow
dso.Format = Aspose.Pdf.DocSaveOptions.DocFormat.DocX
' Set the Horizontal proximity as 2.5
dso.RelativeHorizontalProximity = 2.5F
dso.RecognizeBullets = True
pdf.Save(targetFile.Fullname, dso)
End Using
It works when I switch RecognitionMode to "TextBox" but I would like to use "Flow"
Stacktrace: bei System.Collections.Generic.List`1.set_Capacity(Int32 value)
bei System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
bei .a.a(Int32 , List`1 , Rectangle , Rectangle )
bei .a.(List`1 , List`1 , Int32[,] , Int32[,] , Int32 , Int32 , Int32 , Int32 )
bei .a.(Byte[,] )
bei ..( , Single , Single , , Boolean )
bei ..( , Single , Single )
bei ..e( , SizeF )
bei ..Convert(List`1 , , )
bei ..(List`1 )
bei ..( , Queue`1 )
bei ..Convert(Document , Stream , DocSaveOptions )
bei Aspose.Pdf.Document.Save(Stream outputStream, SaveOptions options)
bei Aspose.Pdf.Document.Save(String outputFileName, SaveOptions options)
Best regards