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

help with a variable...

New Here ,
Aug 09, 2010 Aug 09, 2010

Copy link to clipboard

Copied

Hello to all the community, I would ask if I can help in a case I have to do with postscript,

I  wanted to know which variable is the postscript occupied when you print  multiple pages on one sheet, and I need to save that data to implement a  system of printing,

will be very helpful.

greetings.

TOPICS
Programming

Views

789

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
Aug 10, 2010 Aug 10, 2010

Copy link to clipboard

Copied

What you are trying to accomplish is something called imposition. There is no variable in PostScript that automatically provides such a function. There are any number of ways of writing PostScript for a print job to accomplish such imposition or n-up printing. None involve simply setting a variable someplace. Strongly suggest you learn the PostScript language if you need to pursue this further.

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)

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 ,
Aug 10, 2010 Aug 10, 2010

Copy link to clipboard

Copied

Thank  you for responding Dov.

I explain a little, I'm developing a program  where he studied printing, postscript and rescan the number of leaves by  counting the string "%% page" and the number of copies of another  string "%% BeginNonPPDFeature: NumCopies "then  I need to know the other name of the string, where does the number of  pages in a single leaf, I hope I have explained, it is to know when a  command to print multiple pages on one sheet, not if you say this is called taxation.
I will be very attentive to your answer.
Greetings.
Attentively

Luis Elizalde

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
Aug 10, 2010 Aug 10, 2010

Copy link to clipboard

Copied

(1)     The lines beginning %% are comment lines in the PostScript program; they are not PostScript code itself and you cannot rely on them.

(2)     There is absolutely no available command in PostScript to print multiple pages per sheet.

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)

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 ,
Aug 10, 2010 Aug 10, 2010

Copy link to clipboard

Copied

LATEST

mmm  I see, but I've used those lines commented and I have not had any  problems in recovering the data, in this case is the number of printed  pages, with a "for" travel the PostScript file and a counter to count  the string "% % page: "and so I have the number of  pages printed, and multiply with the data it gives me"%%  BeginNonPPDFeature: NumCopies "in the case of printing multiple copies  of a document, and so I have the total of printed sheets.

When  I send to print multiple pages per sheet or more slides on a sheet, I  can not see how that action and executes postscript is what I need to  finish my printing system.

Greetings.

I am here

Luis Elizalde

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