Hi,
I am having some issues with extracting text information from *.eps immage. Up until now i was just greping the show lines (example:
/ArialMT-ISOLatin1 findfont 32 scalefont setfont 0 0 0 setrgbcolor newpath 0 0 moveto (King James) show grestore grestore grestore 0 0 0 setrgbcolor [] 0 setdash 5 setlinewidth 0 setlinejoin 1 setlinecap newpath -1013.087 5437.645 moveto -574.44269 5148.3467 lineto stroke 0 0 0 setrgbcolor [] 0 setdash 5 setlinewidth 0 setlinejoin 1 setlinecap newpath -801.10602 5042.689 moveto -683.66547 4973.3872 lineto stroke 0 0 0 setrgbcolor [] 0 setdash 5 setlinewidth 0 setlinejoin 0 setlinecap newpath -764.50114 5103.5574 moveto -789.24211 5063.1816 -813.3093 5022.3968 -836.69272 4981.22 curvet +o stroke gsave [0.8480481 -0.52991926 0.52991926 0.8480481 -3204.0386 27.01 +0243] concat gsave [1 0 0 -1 -1554.9214 5600.4102] concat gsave /ArialMT-ISOLatin1 findfont 32 scalefont setfont 0 0 0 setrgbcolor newpath 0 0 moveto (M. L. King) show ...
) to get the information, but then I relized taht the names are not in the same order as in the figure. in the figure M.L.King is before King James. So, is there some proffessional tool (perl module) made for such manipulations?

thnx

b


In reply to eps file parser needed by baxy77bax

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.