Hello again Monks,

I have a task at hand to take all kinds of file types and convert them to text, or extract as much text from them as possible for indexing purposes. Can anyone tell me if there is a perl Framework (via module) already built that will help with such a task? Basically, I would like to take a bunch of files of varying types (PDF, DOC, PPT, HTML, etc) and feed them into a framework that will help extract the text out of each file. I don't want a simple strings extraction, I would like something that identifies file types and using the framework will determine what is needed to best extract data from a given file. Ideally, I would like it all to be perl, so it isn't relying on tools that are specific to an operating system, but understand if that is not possible. Otherwise, I would prefer to stick with Linux tools, if this route is needed.

I understand if nothing exists. I have been thinking of a plan for a while, but wanted to know if anything already existed.

Thank you in advance for any guidance provided.

In reply to Framework for extracting text from files by r1n0

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.