[lug] postscript language help
Michael J. Hammel
mjhammel at graphics-muse.org
Wed Feb 16 21:52:29 MST 2000
I need to write a simple postscript program. All I need is to do the
following:
1. Define the page size
2. Define the borders from the outside edge to where printing will begin
and the place where printing will not exceed.
3. Place x number of bounding boxes around the page, probably 4 or 6.
4. Place text in each box.
If you're reading this in a fixed width text, this is what I want:
+-------------------------+
| |
| +---------+ +---------+ |
| | | | | |
| | | | | |
| | | | | |
| +---------+ +---------+ |
| |
| +---------+ +---------+ |
| | | | | |
| | | | | |
| | | | | |
| +---------+ +---------+ |
| |
| +---------+ +---------+ |
| | | | | |
| | | | | |
| | | | | |
| +---------+ +---------+ |
| |
+-------------------------+
I'd like a function that will take as input the moveto location and the
text to print (multiple variables for the text, one for each line). That
way I can add 6 generic calls to the function. I then run a perl script on
the postscript program to replace the generic calls with the actual text
and pump the results out to the printer.
Font types don't matter much - probably just helvetica or times roman.
I will probably want to scale the text at the start of the program (ie all
the text will print at the same size).
I'm pretty sure this is easy to do, but the amount of ps I've written could
barely fill a 3x5 index card. Page size and a borders are the part I'm not
familiar with. The bounding boxes I think I understand a little.
Anyway, could someone give me a hand with this little project? Its for
CLIQ - part of our registration system. Once I get the postscript program,
I can use it as a template in the larger system to print badges.
Thanks.
--
Michael J. Hammel | I can please only one person per day. Today is
The Graphics Muse | not your day. Tomorrow's not looking good
mjhammel at graphics-muse.org | either. -- Dilbert
http://www.graphics-muse.com
More information about the LUG
mailing list