Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #13349

Re: PDF extract text

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: PDF extract text
Date Mon, 07 Apr 2014 19:38:55 +0200
Organization PointedEars Software (PES)
Lines 38
Message-ID <2244514.pPlKL3OpOf@PointedEars.de> (permalink)
References <lhtavi$dh$1@online.de> <vilain-D1C9B6.08533507042014@news.individual.net>
Reply-To Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1396892338 27594 eJwNyMEBwCAIA8CViJgUxwGV/Uew9zy6oP1NUZPNluVlgwBG1Nq5iL/XiRitmq6bNcwtreIIDxMIEMU= (7 Apr 2014 17:38:58 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 7 Apr 2014 17:38:58 +0000 (UTC)
User-Agent KNode/4.11.5
X-User-ID eJwNyrEBACAIA7CXQG3Bc0Dk/xN0yBZMKo8tgguNrmRKDFdsu15W3k1O4I78RKojo8XQeeKn2qI6ojxlgfEAZb0V7Q==
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Cancel-Lock sha1:FrNRst07tLMsWCOD/w6XD01Vk24=
X-NNTP-Posting-Host eJwNykkRwAAIBDBLFNhlkEM5/Eto8w6MDzucoONwbVpsm+kYgO9cZqwoKo6aMLMd+KbUv8Q/J/gRNw==
Xref csiph.com comp.lang.php:13349

Show key headers only | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web