Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Postscript commands.

Postscript commands.

Postscript commands.

Hi All,
        Would someone be able to help me with 2 postscript commands. I need to know the commands to make a page landscape and the command to make it portrait.
 We have some Mainframe based applications that used to go through good old controllers to good old Xerox printers, but we are now converting to HP's, we can get the output to the printer legibly but it comes out in portrait (printer default) and we need landscape. This happens on both a laserjet 5 So if anyone knows the commands or can point me in the direction of some doco I'd be very gratefull.
Also does anyone use the rotate90 command ?

RE: Postscript commands.

You can control page size with the setpagedevice operator:


% Portrait
<< /PageSize [612 792] >> setpagedevice

% Landscape
<< /PageSize [792 612] >> setpagedevice

You mention "commands"... that's not a PostScript term. Perhaps you're thinking of HP's PJL job control commands?

Those will work for you too:



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting

RE: Postscript commands.

       Yes, I got picked up on the command thing on Friday night ! Thanks for the code above, I'll give it a try. We just have one legacy inhouse application on the mainframe that will get to the hp's but not do landscape, we just need to get the code in there ! We have most other things over, but we've come from the controller/co-ax/3270 Xerox printer and mini-server base and it amazes me we've gotten this far !!
   So thanks again.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close