Hope you can help me. I have Postscript 1 and 2 files that have patient demographic info in them. When I open them up in a text editor I can not make out the patient's name or account number or any data that displays when the file is opened in a viewer so I don't know who the file belongs to. They display fine in a postscript viewer. The postscript files are a form so they have fields like PATIENT: JOE BLOW and ACCOUNT #: 99999999 , etc. I have a process that will file these documents to the patient's record but I need to extract this info first in order to attach the document to the patient's record. Some postscript files I receive I can find these labels in a textual format with my application and can then determine where the corresponding value is and extract it with my application. Others I can not.

Is there a utility that can scan the postscript code looking for these strings (like ACCOUNT#: ) in the postscript language, and then extract the value associated with it (like 99999999) and give me the textual, not postscript, value written out to a file or passed back to my program? Or, Is there a utility that will just rewrite the entire postscript file in it's textual representation. Then my process can read the generated file and pick out the values. I really only need to know the account number.

Any information you can give me would be greatly appreciated.


In reply to Postscript to Text Values by GThorne

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.