We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Wrong text position

I'm using the TextFragmentAbsorber to retrieve the text from the attached PDF. The Text that's displayed by Acrobat is "$ 15,737,652". The absorber is breaking this into three text fragments, "$", "15,", and "737,652"; the issue is that the position of "737,652" is incorrect, it has the same X position as "$"

Is this a bug?

Thanks!

File Version: 12.0.0.0
Product Version: 2016.09.08

var pdf = new Document( PdfFilePath );
var textFragment = new TextFragmentAbsorber( @"\S+", new TextSearchOptions( true ) );
pdfPage.Accept( textFragment );
foreach( TextFragment textSegment in textFragment.TextFragments ){
var textRect = ( textSegment.Rectangle );
Debug.WriteLine(textRect.LLX);
}

Hi Italo,

Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for .NET 12.0.0 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNET-41523 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNET-41523) have been fixed in Aspose.PDF for .NET 19.5.