Skip to main content
Participant
December 12, 2008
Question

Center Page Horizontally

  • December 12, 2008
  • 1 reply
  • 801 views
Does anyone know what code I would need to include in a .ps file in order to center the page horizontally on the paper on output? If so, what is it? I'm going crazy here!
This topic has been closed for replies.

1 reply

Participating Frequently
December 16, 2008
If you are sure your logical page will fit onto the media, you could insert
b <</Policies <</PageSize 3>> >> setpagedevice
to force the PS interpreter to center (and possibly scale down) the logical page to fit onto the physical media.

Otherwise you need to know the dimensions of your logical page(s) and the dimensions of the physical media to compute how to translate the logical page accordingly.

Helge