Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the value of number-up option does not affect page count reported for document in page_log #2672

Closed
michaelrsweet opened this Issue Jan 16, 2008 · 3 comments

Comments

Projects
None yet
1 participant
@michaelrsweet
Copy link
Collaborator

michaelrsweet commented Jan 16, 2008

Version: 1.2.7
CUPS.org User: pp7

the value of number-up option does not affect the number of pages printed reported in page_log.

i do not know if it is a bug or a feature, but as one can see in
filters/pstops.c
PAGE: header is printed every time a logical page of document
is seen, neglecting the presence of number-up parameter.
so cups reports as printed the logical pages of document, not
the pages actually sent by cups to printer

7-pages document printed with number-up=2 reports that 7 pages were
printed, but actually only 4 pages were sent to printer by cups

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

michaelrsweet commented Jan 16, 2008

CUPS.org User: pp7

some more explanation.

printing from windows using cups drivers on postscript printer.

selecting on windows to print 2up

cups pstops filter does not notice that user has selected print options
on windows to print 2up,
cups counts as single page printing, but sends to printer 2up

7pages document is printed on 4 sheets od paper, cups reported 8 sheets

manually running pstops from command prompt and giving options works ok (just pstops cannot recognize number-up option which is inside printed postscript file when printing from windows stations using postscript cups/windows drivers)

/usr/lib/cups/filter/pstops testjob testuser 1 number-up=1 < file.ps 2>&1 > /dev/null | grep PAGE
PAGE: 1 1
PAGE: 2 1
PAGE: 3 1
PAGE: 4 1
usr/lib/cups/filter/pstops testjob testuser 1 number-up=2 < file.ps 2>&1 > /dev/null | grep PAGE
PAGE: 1 1
PAGE: 2 1
usr/lib/cups/filter/pstops testjob testuser 1 number-up=2 < file.ps 2>&1 > /dev/null | grep PAGE
PAGE: 1 1

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

michaelrsweet commented Jan 16, 2008

CUPS.org User: pp7

i'm to tired now, last command has been run with number-up=4 of course, my mistake while ctrl-c,ctrl-v

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

michaelrsweet commented Jan 16, 2008

CUPS.org User: mike

number-up is implemented differently on Windows. Nothing we can do...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.