🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.postscript.programming
2 messages
2 total messages Started by durumdara Wed, 03 Jan 2007 11:16
How to get textboxes from pages from a ps file?
#445
Author: durumdara
Date: Wed, 03 Jan 2007 11:16
17 lines
1051 bytes
Hi!

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?
Thanks for every help:
dd
Re: How to get textboxes from pages from a ps file?
#447
Author: Alex_Cherepanov
Date: Wed, 03 Jan 2007 20:03
22 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads