patch against evince to fix multipage even odd printing issues
Submitted by Bartek Kostrzewa
Link to original bug (#583429)
Description
Please describe the problem: Note, this patch is against the git master branch but I couldn't test it with a running copy of the master branch because this is a production system and i can't run the dev version of gnome here.
I have tested it on ubuntu against evince_2.26.1-0ubuntu1 and submitted a downstream patch on launchpad. (https://bugs.launchpad.net/bugs/378976)
This patch fixes the bugs people are experiencing when printing:
- multiple pages per sheet (lp107025)
- even and odd sheets (lp107025)
- multiple collated copies + multiple pages per sheet (lp282659)
In this context it is important to know that it behaves likes lpr with n-up and even/odd options passed: if you have a document with 5 pages and want to print 2 pages per sheet, MANUAL duplex
print odd sheets:
{1,2} , {5}
flip sheets and print even sheets:
{3,4}
IE: you need to make sure to remove the sheet with page 5 from the stack, evince will not produce empty sheets to fully automate the process. This would be nice, but it would mess with other things. Besides, it is the way multipage even & odd printing works on other platforms and the native GtkPrintOperation
.
It does NOT solve bugs related to:
- multiple pages per sheet + reverse order (lp377102)
- the weird ordering of pages when
pages_per_sheet = 6
(related to: lp328143)
as that would require a complete rethinking of the way the output is assembled for printing.
It MAY solve:
- evince prints multiple (collated) copies as one job
- weird stapling behaviour with multiple copies
ie: lp258364
I'm not sure about this because as far as I can tell the multiple copies are still sent as one print job, but by solving lp282659 we introduce blank spaces on sheets so the two copies are clearly separated, it depends on how the driver treats this.
Other information:
It would be great if a developer could take a look at it and comment. It would also be great if someone could enlighten me if the changes going into EvPrintOperation
to transition to GtkPrintOperation
will solve these bugs in the future. The reverse multipage printing functionality bug is especially nasty.
Version: git master