Am 17.11.20 um 07:54 schrieb Hesham Gneady:
Hi,
I am trying to read this PDF file using
PDFTextStripper.processTextPosition():
https://dl.dropboxusercontent.com/s/o660xrp4sgp9tbv/PDFTextStripper%20readin
g%20sample.pdf?dl=0
But when I do that it reads it with wrong order. It reads the 2nd line
before the 1st line because the 1st line has Subscript effect. Is there a
way to read it right ordered?
I a pdf the text doesn't neccessarly appear in the rendering order. You should
give the sort option a try:
org.apache.pdfbox.text.PDFTextStripper.setSortByPosition(boolean)
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org