• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

text extraction from postscript file with bounding box coordinates

New Here ,
Mar 20, 2008 Mar 20, 2008

Copy link to clipboard

Copied

Hello,

I need to extract text from ps file.
ps2ascii does that, but I need the complete rectangular coordinates info with text.
So I need all text box informations like this:

text{x:100,y:100;w:600;h:27}
or
text{x1:100, y1:100, x2:150, y2:120}

where x1, y1, x2 and y2 and are rectangular bounding box coordinates to display the text.

Thanks for your help.
TOPICS
Programming

Views

470

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

LATEST
Look into Ghostscript's ps2ascii.ps utility and read the description at the beginning of this file.

It produces output similar (but not completely) to what you want. But by tweakint that script, you may modify it to produce exactly your desired output.

Helge

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines