Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #13341 > unrolled thread
| Started by | Philipp Kraus <philipp.kraus@flashpixx.de> |
|---|---|
| First post | 2014-04-07 06:53 +0200 |
| Last post | 2014-04-07 19:38 +0200 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.lang.php
PDF extract text Philipp Kraus <philipp.kraus@flashpixx.de> - 2014-04-07 06:53 +0200
Re: PDF extract text Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-04-07 13:44 +0200
Re: PDF extract text Christoph Michael Becker <cmbecker69@arcor.de> - 2014-04-07 21:52 +0200
Re: PDF extract text Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-04-07 22:12 +0200
Re: PDF extract text Michael Vilain <vilain@NOspamcop.net> - 2014-04-07 08:53 -0700
Re: PDF extract text Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-04-07 19:38 +0200
| From | Philipp Kraus <philipp.kraus@flashpixx.de> |
|---|---|
| Date | 2014-04-07 06:53 +0200 |
| Subject | PDF extract text |
| Message-ID | <lhtavi$dh$1@online.de> |
Hello, how can I extract text, images and other structures can be ignored, with PHP from a PDF file? We have a lot of LaTeX PDFs and Powerpoint PDFs and would like to extract only the text content to create a text analysis of the content eg for LaTeX scripts we would like the chapter structure as well. Is there any solution to do this with build-in PHP functions? Thanks Phil
[toc] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-04-07 13:44 +0200 |
| Message-ID | <2516409.2CcVLJuQFQ@PointedEars.de> |
| In reply to | #13341 |
Philipp Kraus wrote:
> how can I extract text, images and other structures can be ignored,
> with PHP from a PDF file?
For example with “PDF Parser”. You cannot have searched before posting; it
took me less than a minute to find that out with the Google keywords “pdf
php read”.
<http://www.catb.org/~esr/faqs/smart-questions.html>
> We have a lot of LaTeX PDFs and Powerpoint PDFs and would like to
> extract only the text content
> to create a text analysis of the content eg for LaTeX scripts we would
> like the chapter structure as well.
PDF files generated with pdflatex usually contain that as TOC metadata.
> Is there any solution to do this with build-in PHP functions?
^t
No.
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Christoph Michael Becker <cmbecker69@arcor.de> |
|---|---|
| Date | 2014-04-07 21:52 +0200 |
| Message-ID | <5343020c$0$6698$9b4e6d93@newsspool2.arcor-online.net> |
| In reply to | #13344 |
Thomas 'PointedEars' Lahn wrote: > Philipp Kraus wrote: > >> Is there any solution to do this with build-in PHP functions? > ^t > No. Well, there may not be a solution to do this with built-in PHP functions (whatever a built-in PHP function might be; actually (almost) all PHP functions are part of an extension), but at least *theoretically* it would be possible by processing the PDF file "bytewise". (The PDF specification is available online for free.) -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-04-07 22:12 +0200 |
| Message-ID | <1770165.QKiuFmdDQt@PointedEars.de> |
| In reply to | #13350 |
Christoph Michael Becker wrote: > Thomas 'PointedEars' Lahn wrote: >> Philipp Kraus wrote: >>> Is there any solution to do this with build-in PHP functions? >> ^t >> No. > > Well, there may not be a solution to do this with built-in PHP functions > (whatever a built-in PHP function might be; actually (almost) all PHP > functions are part of an extension), but at least *theoretically* it > would be possible by processing the PDF file "bytewise". (The PDF > specification is available online for free.) *rolls eyes* *bags collected trolls’ eyes* -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Michael Vilain <vilain@NOspamcop.net> |
|---|---|
| Date | 2014-04-07 08:53 -0700 |
| Message-ID | <vilain-D1C9B6.08533507042014@news.individual.net> |
| In reply to | #13341 |
In article <lhtavi$dh$1@online.de>, Philipp Kraus <philipp.kraus@flashpixx.de> wrote: > Hello, > > how can I extract text, images and other structures can be ignored, > with PHP from a PDF file? > We have a lot of LaTeX PDFs and Powerpoint PDFs and would like to > extract only the text content > to create a text analysis of the content eg for LaTeX scripts we would > like the chapter structure as well. > > Is there any solution to do this with build-in PHP functions? > > Thanks > > Phil I tried a bunch of stuff to read some bank statements that were in PDF format so I could import them via CSV. Didn't work out so well. Adobe's OCR feature only works if the PDFs are unlocked to allow it. I found an application that would do that but the OCRed text was unusable. So, my question is "what's generating the PDF files?" Can you get whomever to do it in text or some other format? If they're encrypted images, then you've got a lot of work to do in order to get some output. Maybe. Good luck with this... -- DeeDee, don't press that button! DeeDee! NO! Dee... [I filter all Goggle Groups posts, so any reply may be automatically ignored]
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-04-07 19:38 +0200 |
| Message-ID | <2244514.pPlKL3OpOf@PointedEars.de> |
| In reply to | #13348 |
Michael Vilain wrote:
> Philipp Kraus <philipp.kraus@flashpixx.de> wrote:
>> how can I extract text, images and other structures can be ignored,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> with PHP from a PDF file?
>> We have a lot of LaTeX PDFs and Powerpoint PDFs and would like to
^^^^^ ^^^^^^^^^^
>> extract only the text content
>> to create a text analysis of the content eg for LaTeX scripts we would
>> like the chapter structure as well.
>>
>> Is there any solution to do this with build-in PHP functions?
>
> I tried a bunch of stuff to read some bank statements that were in PDF
> format so I could import them via CSV. Didn't work out so well. Adobe's
> OCR feature only works if the PDFs are unlocked to allow it. I found an
> application that would do that but the OCRed text was unusable.
>
> So, my question is "what's generating the PDF files?"
The ability to read can be of advantage sometimes …
> Can you get whomever to do it in text or some other format?
OMG. One can leave it to you to give the worst possible technical advice.
> If they're encrypted images, then you've got a lot of work to do in order
> to get some output. Maybe.
Nobody but you is talking about images and OCR. You really don't have a
clue what PDF is, do you?
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.t r
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web