Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mission impossible? Always printing at the bottom of a page

Status
Not open for further replies.

TESF

Technical User
Aug 21, 2003
1
US
Hi! I've got a problem that my It-support says is impossible...but anything is possible, right?

Every day we print a set of reports (100's). They come in various lengths (they are all standarized and some fills the entire page while others just fills up the top half of the page.

Could anyone please help me with a Postscript code that does the following:

Cuts the margin on the bottom of the page (so that it prints at the very end of each sheet, probably the easy part) and ensures that I allways ends up printing at the very end of each sheet. (So I want a code that in stead of printing from the top and stops halfway down the page, starts halfway down the page and ends at the very bottom of the page. Bear in mind that these reports come in various lengths.)

Can anyone help me out with this one?
 
The basic command you want to use is "translate", which takes an X and a Y coordintate passed to it.

The technique is to translate y down to where you want to start on the page.

The hard part will be calculating that, which you can only do by getting the last y value used on your report. How can you do that without imaging the whole report?

It's a chicken and egg thing. Do you have any sample reports we could look at?

Thomas D. Greer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top