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

Problem in changing the Orientation of Post Script File

New Here ,
Apr 10, 2008 Apr 10, 2008

Copy link to clipboard

Copied

Hi

I am trying to write a script which will take a post script file as a input and fire it to the printer.

I want to know some post script commands for the following. Please let me know that is it possible. And plz give me the post script commands.

if (def_orientation == landscape)
do nothing
else
change the orientation to landscape

Here plz tell me how to determine the default orientation of the post script file.

Thanks
amidiil
TOPICS
Programming

Views

734

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
Explorer ,
Apr 10, 2008 Apr 10, 2008

Copy link to clipboard

Copied

>Here plz tell me how to determine the default orientation of the post script file.

This is impossible in the general case. Printed pages usually do not
have an orientation; rather, some pages happen to have text running at
90 degrees. In such cases the user picks up the page and says "oh!
landscape". This is much harder for a computer, though it is not
impossible to trap all the text requests and evaluate the most
frequent text direction.

In lucky cases DSC comments (%% lines) give the information you seek.

Aandi Inston

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
New Here ,
Apr 11, 2008 Apr 11, 2008

Copy link to clipboard

Copied

we have post script file in portrait orientation. After giving some post script commands, can we change the orientation of that file to landscape.

If yes, what postscript commands will make this happen?

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
Explorer ,
Apr 11, 2008 Apr 11, 2008

Copy link to clipboard

Copied

You can change the orientation of content on a page using rotate and
translate operators but that does not change the orientation of the
page, only the contents. You'd need to intercept all the page size
requests too, and add a default in case there wasn't one. You should
also update any DSC comments in case applications use them. Not a
project I'd fancy.

Aandi Inston

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
New Here ,
Apr 11, 2008 Apr 11, 2008

Copy link to clipboard

Copied

Hi Aandi Inston,

I don;t have much idea of post script commands and language. Can you please let me know what exactly I have to do here.

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
Explorer ,
Apr 11, 2008 Apr 11, 2008

Copy link to clipboard

Copied

LATEST
> Can you please let me know what exactly I have to do here.

I think you are looking for a magic bullet. There isn't one. This is a
serious project for a PostScript expert.

Aandi Inston

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