We receive an error when attempting to upload a PDF.
content file: sample (716.8 KB)
error message: “Index and length must refer to a location within the string. Parameter name: length”
stack trace: “… page.Accept(textAbsorber)”
'create TextAbsorber object to extract text Dim textAbsorber As New TextAbsorber(New TextExtractionOptions(TextExtractionOptions.TextFormattingMode.MemorySaving)) 'open document Using doc As New Aspose.Pdf.Document(inFile) 'accept the absorber for each of the pages For Each page As Page In doc.Pages page.Accept(textAbsorber) page.Dispose() Next doc.Dispose() End Using
Do you have any suggestions on how we can resolve this issue?