GNOME Bugzilla – Bug 359030
Portrait/landscape selection
Last modified: 2009-07-23 10:07:51 UTC
There is no way currently to set the print orientation for a print job, either manually (portrait/landscape) or automatically (based on the relative aspect ratios of the printed document and the printer papersize).
The feature was asked for in https://launchpad.net/ubuntu/+source/gtk+2.0/+bug/80218 too.
That is not a GTK+ issue. The GTK+ API provides gtk_print_run_page_setup_dialog(). Applications that work with documents based on pages, should provide this dialog in the menus as "File->Page Setup". Applications such as EOG should include a button for this in the Print dialog. See for example http://sven.gimp.org/misc/gimp-print-dialog.png. I suggest that this is closed as NOTABUG.
Sven, wouldn't you expect that button to be on the page-setup tab rather than the special widgets' tab?
I had serious problems selecting landscape in Gnumeric. It took a while before I found a completely different menu item that opened a dialog with a button I needed to press to bring up a dialog where I could change to landscape... So, the worst thing for me at least, is that every application seem to do this differently. And that's because GTK+ leaves it up to the application to decide how to do it. What's wrong with putting page orientation in page setup where it (IMHO) belongs?
Martin, you wrote: "the worst thing for me at least, is that every application seem to do this differently. And that's because GTK+ leaves it up to the application to decide how to do it." This isn't quite correct" Gnumeric just uses the regular gtk dialogs for selection of the papertype and printer information. If you check Gnumeric's page setup dialog you will also see a button "Change Paper Type" that brings up Gtk's dialog to select among other things the papersize and the orientation. So the page orientation can in fact be set in the page setup dialog. So there is nothing wrong with putting page orientation in page setup where it (IYHO) belongs. In fact, in Gnumeric it is in fact being done (using GTK's regular page setup dialog.)
(In reply to comment #5) > This isn't quite correct" Gnumeric just uses the regular gtk dialogs for > selection of the papertype and printer information. Yes, I know. > If you check Gnumeric's page setup dialog you will also see a button "Change > Paper Type" that brings up Gtk's dialog to select among other things the > papersize and the orientation. So the page orientation can in fact be set in > the page setup dialog. Yes, I know this too. Though it took me a while to find it. And this is different from how e.g. Evince does it (File->Print Setup), Gimp (File->Print->Image Settings->Adjust Page Size and Orientation), and I'm sure there are other variations... > So there is nothing wrong with putting page orientation in page setup where it > (IYHO) belongs. In fact, in Gnumeric it is in fact being done (using GTK's > regular page setup dialog.) I think you misunderstood me. I want it somewhere in the Page Setup tab in the print dialog. All this extra hubbub with dialogs and buttons and whatnot is just excise. And the worst thing is that everyone does it their own way because, like I said, GTK+ leaves it up to the applications to decide.
Well you mentioned Gnumeric. Evince has a File->Print Setup menu item that brings up a dialog called PageSetup, violating the HIG. The problem is really not that GTK+ leaves it up to the applications to decide but that GTK+ does not provide a way to add additional tabs to its page setup dialog. I would greatly prefer to have the paper and orientation settings in its own tab but that would require us not to use GTK's pagesetup dialog since that one is not extendable. So the real problem is that GTK+ does not allow applications to extend thier page setup dialog (they do allow extension of their print dialog but many settings are needed well before printing.) This is just the opposite of saying that GTK+ leaves it up to the applications to decide.
(In reply to comment #6) > I think you misunderstood me. I want it somewhere in the Page Setup tab in the > print dialog. All this extra hubbub with dialogs and buttons and whatnot is > just excise. And the worst thing is that everyone does it their own way > because, like I said, GTK+ leaves it up to the applications to decide. Perhaps I should clarify. Merge the GTK+ Page Setup dialog (that everyone has their own way to bring up, currently) with the Page Setup tab in GTK+'s print dialog. I don't see why paper size and orientation need to be in a totally different dialog that everyone has their own way to bring forward.
(In reply to comment #7) > I would greatly prefer to have the paper and orientation settings in > its own tab but that would require us not to use GTK's pagesetup dialog since > that one is not extendable. See comment 8. > So the real problem is that GTK+ does not allow applications to extend thier > page setup dialog (they do allow extension of their print dialog but many > settings are needed well before printing.) Well, they can extend the Print dialog, correct? I don't see why page setup needs to be done in a completely separate dialog from the print dialog. > This is just the opposite of saying that GTK+ leaves it up to the applications > to decide. GTK+ doesn't leave it up to the applications how to show the Page Setup dialog? I'm confused.
In a spread sheet or any other program that allows you to edit a document you may want to show page breaks and other formatting that is page related. (GNumeric currently does not show the page breaks but we regularly are getting asked about it and itis planned to be implemented.) So asking the user to determine page size and orientation when they are ready to print is too late. That's why most applications have separate page setup and print menu items (where the former is sometimes called "format page"). Since it wouldn't make sense to specify margins etc without being able to specify page size and orientation would essentially move the whole page setup dialog of Gnumeric into the print setup dialog. So to choose those settings you would need to select print even if you are not ready to print, then select those items an then...? Selecting print is not what you want, print preview may not be what you want, cancel seems to imply to ignore the selkected settings,... Gimp can include it in ithe print dialog since the images it is editing are not page oriented. Evince ignores things like page orientation settings anyways (since you can't really change the existing pdf file to landscape if it is portrait).
Well, how can you even start thinking about paper size and margins etc before you have selected a printer (which may limit the available paper sizes etc)? But yes, I partly see your point. And there are different use cases. Why can't some settings be available in two places in applications like Gnumeric? E.g. the Page tab in Gnumeric's Page Setup dialog could also be added to the print dialog for instance. (And if paper size is added to it, the button that brings up GTK+'s page setup dialog could be removed. Right now the user can select orientation in two different places. I noticed this now with the version in Hardy, was previously on Gutsy.) Or maybe a page setup button somewhere in the print dialog that can bring up an application specific page setup dialog (that also may be accessible from somewhere else) if wanted but brings up GTK+'s page setup dialog by default. (Like in the OS X screenshot on http://live.gnome.org/ProjectRidley/GnomePrintDialog .) I don't know. I just think the current situation is a mess.
I do agree with "the current situation is a mess." I think it is silly to have a page setup tab in the print dialog without a way to change orientation. (See my comment #3). I would like to have an ability to add more than one tab added to the gtk+ print dialog that can be populaed by the application. Unfortunately the gtk+ developers chose to allow only one tab. I would like to be able extend the gtk+ page setup dialog by adding tabs (like the print dialog but with multiple tabs) or have an api to obtain a gtk+ page setup widget. Then one could have a proper page setup dialog including direct access to changing orientation and papersize. Alas there is no such api (yet?). If this would all be available it would be reasonable to have both pagesetup incorporated into the print dialog (even if this may violate the gnome human interface guidelines) and in an independent pageset or format page dialog.
Hi, paper size selection and orientation selection are in page setup tab now (their sensitivity is controlled by calling of gtk_print_operation_set_embed_page_setup_dialog()). Marek *** This bug has been marked as a duplicate of 551409 ***