You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Simer P <si...@gmail.com> on 2014/05/16 14:39:53 UTC
PDF file characters x and y coordinates
I just needed to confirm this with you guys.
Can the X and Y coordinates returned in the
processTextPosition(TextPosition text) ever be incorrect ?
Because it doesn't really matter in what order the text is extracted ... if
the x and y coordinates are accurate then I can rearrange the characters
based on the applications requirements.
So can the X and Y coordinates every be wrong ?
Cheers
Re: PDF file characters x and y coordinates
Posted by Alin Mazilu <im...@gmail.com>.
I process about 2000 PDF files daily and I never had had an issue with the
coordinates. One piece of advise though: write your own
TextPositionComparator.
~Alin
On Fri, May 16, 2014 at 8:39 AM, Simer P <si...@gmail.com> wrote:
> I just needed to confirm this with you guys.
>
> Can the X and Y coordinates returned in the
> processTextPosition(TextPosition text) ever be incorrect ?
>
> Because it doesn't really matter in what order the text is extracted ... if
> the x and y coordinates are accurate then I can rearrange the characters
> based on the applications requirements.
>
> So can the X and Y coordinates every be wrong ?
>
> Cheers
>