GNOME Bugzilla – Bug 734788
Center option doesn't work when printing with a manual scale
Last modified: 2015-02-04 14:55:30 UTC
Try to print a document with page scale none (or shrink to printable area if the document fits in paper), with the autorotate and center option enabled, and using a manual scale less than 100% (in the second tab). The document is not correctly centered as expected.
Created attachment 283381 [details] [review] print-operation: Fix centering of documents when printing with a manual scale Adrian, could you please review this patch?
Looks good.
(In reply to comment #2) > Looks good. Thanks!
Comment on attachment 283381 [details] [review] print-operation: Fix centering of documents when printing with a manual scale Pushed to both branches
Created attachment 290542 [details] [review] centered scaled printing, take 2 Hmm, I think you want cairo_device_to_user_distance in this case. And apparently, the landscape case needs to be considered separately. With this patch (on top of current evince) everything appears where it should be, and not somewhere outside the paper.
Yeah OK, this doesn't work either. (scaling down https://app.box.com/s/l59dzndwvq9wp2ter478 to A4.) And all I wanted was to print a PDF. I'm out, sorry.
https://bugzilla.gnome.org/show_bug.cgi?id=739723#c18
Reopening, since I've reverted the patches. See bug #739723
Created attachment 295626 [details] [review] Patch This patch merges my original commit with the fixes by Leo. It also bumps the required GTK+ version to make sure GTK+ is doing what we expect. It works for me in all the cases I've tried, could you guys confirm this works for you as well?
Yes, this works for me. GTK+ 3.14.6 is also doing the right thing, if you want to apply this to the 3.14 branch as well. Thank you!
I'm sorry that I'm so late. I've just tested this and it works for me too. Thank you.