You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Evan Smith <ev...@gmail.com> on 2016/02/11 19:37:19 UTC
unable to extract text
Hello,
Using pdf box
java -jar pdfbox-app-1.8.11.jar ExtractText
lenvima-epar-product-information.pdf lenvima-epar-product-information.txt
The text extracted comes out with a "width" of about 15 characters, just
one big column. In later pages it seems to figure it out ... and then
get confused again.
I am able to use pdfbox on other pdfs and works great. So something
about this pdf is the issue.
Note, when I copy and paste out of adobe reader I find that I get the
same column issue.
Ideas on how to get the text here ... with a larger width?
See attached pdf
Thanks,
Evan
--
Evan C. Smith, MS, MD
Evan.Smith.MS.MD@gmail.com
Cell: 781-879-8736
Re: unable to extract text
Posted by Tilman Hausherr <TH...@t-online.de>.
You can't. The page number you see in the PDF ist just a text like other
text.
If you know where the numbers are, you could use the ExtractTextByArea
tool, but you'll have to program this, i.e. this isn't a command line tool.
Tilman
Am 12.02.2016 um 00:10 schrieb Evan Smith:
> Hello,
>
>
> Using pdf box
> java -jar pdfbox-app-1.8.11.jar ExtractText
> lenvima-epar-product-information.pdf lenvima-epar-product-information.txt
>
> How would I NOT have page numbers in the text I am extracting. I
> can't tell the difference between the numbers in my PDF file and the
> page numbers.
>
> Thanks,
> Evan
>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: unable to extract text
Posted by Evan Smith <ev...@gmail.com>.
Hello,
Using pdf box
java -jar pdfbox-app-1.8.11.jar ExtractText
lenvima-epar-product-information.pdf lenvima-epar-product-information.txt
How would I NOT have page numbers in the text I am extracting. I can't
tell the difference between the numbers in my PDF file and the page numbers.
Thanks,
Evan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: unable to extract text
Posted by Evan Smith <ev...@gmail.com>.
thank you, that worked great.
Tilman Hausherr wrote:
> Try the "-sort" flag.
>
> Tilman
>
> Am 11.02.2016 um 19:37 schrieb Evan Smith:
>> Hello,
>>
>> Using pdf box
>> java -jar pdfbox-app-1.8.11.jar ExtractText
>> lenvima-epar-product-information.pdf
>> lenvima-epar-product-information.txt
>>
>> The text extracted comes out with a "width" of about 15 characters,
>> just one big column. In later pages it seems to figure it out ...
>> and then get confused again.
>>
>> I am able to use pdfbox on other pdfs and works great. So something
>> about this pdf is the issue.
>>
>> Note, when I copy and paste out of adobe reader I find that I get the
>> same column issue.
>>
>> Ideas on how to get the text here ... with a larger width?
>>
>> See attached pdf
>>
>> Thanks,
>> Evan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: unable to extract text
Posted by Tilman Hausherr <TH...@t-online.de>.
Try the "-sort" flag.
Tilman
Am 11.02.2016 um 19:37 schrieb Evan Smith:
> Hello,
>
> Using pdf box
> java -jar pdfbox-app-1.8.11.jar ExtractText
> lenvima-epar-product-information.pdf lenvima-epar-product-information.txt
>
> The text extracted comes out with a "width" of about 15 characters,
> just one big column. In later pages it seems to figure it out ... and
> then get confused again.
>
> I am able to use pdfbox on other pdfs and works great. So something
> about this pdf is the issue.
>
> Note, when I copy and paste out of adobe reader I find that I get the
> same column issue.
>
> Ideas on how to get the text here ... with a larger width?
>
> See attached pdf
>
> Thanks,
> Evan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org