• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Center Page Horizontally

New Here ,
Dec 12, 2008 Dec 12, 2008

Copy link to clipboard

Copied

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!
TOPICS
Programming

Views

751

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 16, 2008 Dec 16, 2008

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines