Copy link to clipboard
Copied
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
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
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
Copy link to clipboard
Copied
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