Article View: adobe.postscript.programming
Article #447Re: How to get textboxes from pages from a ps file?
From: Alex_Cherepanov
Date: Wed, 03 Jan 2007 20:03
Date: Wed, 03 Jan 2007 20:03
22 lines
1669 bytes
1669 bytes
durumdara@adobeforums.com wrote:
> I need to get text from ps file.
> Ok, ps2ascii do that, but I need the complete pos/size info with text.
> So I need all textbox informations like this:
>
> page1
> textbox1{x:100,y:100;w:600;h:27;text:"TextBox1 /xfc /xfa"}
> textbox2{x:100,y:180;w:600;h:27;text:"TextBox2"}
> page2
> textbox1{x:100,y:100;w:600;h:27;text:"TextBox1"}
> textbox2{x:100,y:180;w:600;h:27;text:"TextBox2"}
> ...
>
> Is anyone knows about a tool or parser that can provide these informations to me?
Convert to uncompressed PDF and parse the content stream.
If you need a single-pass converter, it can be created from the pdfwrite
device, but it is a significant development effort.
Regards,
Alex Cherepanov
Technical Details
Message-ID:
<069F0B138200CCDFB00E0BC58BEA8E04@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<3bc2baa9.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,5f95296dafbe5dde X-Google-Attributes: gid10c61a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alex_Cherepanov@adobeforums.com Newsgroups: adobe.postscript.programming Subject: Re: How to get textboxes from pages from a ps file? Message-ID: <069F0B138200CCDFB00E0BC58BEA8E04@in.webcrossing.la2eafNXanI> Date: Wed, 3 Jan 2007 12:03:54 -0800 References: <3bc2baa9.-1@webcrossing.la2eafNXanI> Lines: 25 User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing