GNOME Bugzilla – Bug 505123
page setup does not work for paper sizes other than Letter and A4
Last modified: 2018-04-15 00:30:31 UTC
Please describe the problem: When I try to print an image to a paper size other than letter size, I get a error from the printer telling me that I have it set to the wrong paper size....it reverts back to "letter" size. Steps to reproduce: 1. Select the print command after setting the print size (I've been printing 4x6 recently) 2. In the print command window, set the properties to paper size 4x6 in the printer properties and/or the Image tab. (this used to not even appear with the previous version of GIMP 3. Click on Print Actual results: No matter how I go about setting the paper size (and I always make sure the print size is the correct size or smaller), a window from my printer pops up telling me I have the incorrect paper size selected. When I go in to reselect the paper size, it is always back at the letter size. If I select the size I want, leave that tab, then go back into it to double check that it didn't change, often times GIMP crashes and I have to close and restart it. This did not happen in the previous version of Gimp that I had on this same computer with the same printer. Expected results: I would expect the image and size I select to actually print. Does this happen every time? YES! Other information: I end up having to save the image and print it from another program, but I lose image quality when I do that and if something isn't right, I end up having to restart GIMP, make changes and save again.
What operating system are you using?
(In reply to comment #0) > Please describe the problem: > When I try to print an image to a paper size other than letter size, I get a > error from the printer telling me that I have it set to the wrong paper > size....it reverts back to "letter" size. > > Steps to reproduce: > 1. Select the print command after setting the print size (I've been printing > 4x6 recently) > 2. In the print command window, set the properties to paper size 4x6 in the > printer properties and/or the Image tab. (this used to not even appear with > the previous version of GIMP > 3. Click on Print > I am experiencing this problem too, and have a stack of 4x6 photo paper printed partially to show for it! :) My O/S is Windows XP Media Center Edition SP 2 (very similar to XP Professional). My version of GIMP is 2.4.1. Let me know if I should open a separate bug for that version. I don't get the error message from the printer; but I do get invalid results (printing as if I chose 8.5 x 11 paper). I try clicking on the "Image Settings" tab of the print dialog; that tab states "Printable area: 8.00 x 10.19 inches" and if I hit the "Adjust Page Size and Orientation" button, choose paper size "4 x 6 Borderless" and set page margins to "0" for all, click "OK", then back on the "Image Settings" it now says "Printable area: 8.50 x 11.00 inches" - it appears to have taken the margin settings but not the paper size settings. If I try clicking the "Adjust Page Size and Orientation" button again, it appears to lock up. Printer: Lexmark 7300 Series (All in one inkjet)
Let's set this to depend on bug #513291, because this should at least make the adjustments possible.
I should try this in trunk.
Michael, did you get a chance to try this in trunk?
Hm... no errors, but I can only choose the A* sizes (A4 and A5) and Letter, most other formats available in the dialog aren't kept and revert to the last setting (of the three mentioned before).
Could you check what's written into ~/.gimp-2.5/print-page-setup ?
The settings of the last successful one are kept (e.g. Letter or A4), for example: [print-page-setup] PPDName=Letter DisplayName=US Letter Width=215.89999389648437 Height=279.39999389648438 MarginTop=6.3499999999999996 MarginBottom=14.220000000000001 MarginLeft=6.3499999999999996 MarginRight=6.3499999999999996 Orientation=portrait
The settings are saved when the dialog is closed. They are stored as a parasite on the active image and also stored in the print-page-setup file. What do you mean by "successful"?
"successful" means that the paper size I chose in the dialog is displayed when I do re-open the dialog again. And this does only happen for e.g. A4 and Letter - maybe some others as well, but the majority of other formats I tried was not saved.
Let's summarize this as follows: 1. Open dialog 2. Select Letter 3. Close dialog 4. PPDName is Letter 5. Open Dialog 6. Letter is displayed 7. Select A4 8. Close dialog 9. PPDName is A4 10. Open Dialog 11. A4 is displayed 12. Select Letter DL 13. Close dialog 14. PPDName is A4 15. Open Dialog 16. A4 is displayed I did not check if the file has been saved with the wrong values or not saved at all, but nevertheless it does not contain the paper size set in the UI.
And this was with GTK+ 2.14.1.
*** Bug 555060 has been marked as a duplicate of this bug. ***
I get this error too under 2.6.0. Another thing is it won't remember the printer that you select. It always defaults to the default printer.
A little digging: My print-page-setup looks like this after I select 5x7 and close the dialog by clicking ok: [print-page-setup] PPDName=Letter DisplayName=US Letter Width=215.89999389648437 Height=279.39999389648438 MarginTop=0 MarginBottom=0 MarginLeft=0 MarginRight=0 Orientation=portrait Doesn't look right to me. Another thing that MAY be related is that non-default printers will not be remembered in page setup. Say I want to print to a PDF of non-standard size, like a poster. I select the printer, then select the size of the page. This is not remembered either. Another thing that came up since I upgraded to 2.6.0 is that the scaling is way off. The printout does not keep the image size. Are these all related? It seems to me that something is getting lost somewhere.
This should be reassigned to GTK+ as it is most definitely a problem in the Windows GtkPrint backend. But since the bug report is already quite confusing, we should try to make a reproducable test case for this. I even had a look at the code already and I think I know where the problem in GTK+ is.
For the paper size issue, the steps to reproduce the error are: 1) Open image 2) In Page Setup, select a page size that is not A4 or Letter, close dialog 3) Check print-page-setup and observe that it indeed has NOT changed to the previously selected page size. For the other bugs which keep printing from actually being useful, where then should I submit a bug report?
There are already tons of bug reports about the brokenness of GtkPrint on the Win32 platform. Adding more is not likely going to help. What is needed is someone who fixes the code. It doesn't make sense to wait for the GTK+ developers to do that. Some Windows user needs to scratch an itch and fix this code.
*** Bug 557992 has been marked as a duplicate of this bug. ***
*** Bug 562499 has been marked as a duplicate of this bug. ***
*** Bug 567609 has been marked as a duplicate of this bug. ***
*** Bug 587380 has been marked as a duplicate of this bug. ***
Hello, I'm experiencing these problems too, when I'm selecting paper size 4x6 inch. May you take a look at bug #587380 I experienced the problems also on Linux!!!
*** Bug 604976 has been marked as a duplicate of this bug. ***
*** Bug 609891 has been marked as a duplicate of this bug. ***
I'm just hitting this bug in Inkscape 0.47 on Windows XP (which seems to be using this component for printing). I think the problem is created by a rounding error. When I want to print to my OKI color laser printer it doesn't work. The printer goes offline and asks me to feed it the correct paper format (it allows manual feeding from the side at any time). When I look in the printer properties dialog at that time, it shows a paper-size of 296,9 x 209,9 mm (instead of A4 = 297 x 210 mm) and "user-defined format". If I use other printer drivers to start a print I can see that they mostly pre-select "Letter". These seem to be all printer drivers that use the standard Windows printing dialog which probably doesn't allow for a user-defined format. Some, like my OKI and the Microsoft Office Livewriter show 296,9x209,9. So, this doesn't seem to be an issue that a setting is not sticking, but an issue with incorrect rounding. What's sent to the printer for paper-size is either not rounded up to the mm or is not "A4". Some printers then choose the "next lowest" paper-size and some allow a user-defined paper-size and try to print using the exact paper-size. As this paper size is usually not available each printer/driver will then react different according to its options. Some may print, some may ask for paper, some may ask for a decision which paper to use, some may not print at all ... And as it is not the correct paper size that is sent to the printer driver it can never stick, of course. So, with that information I think it should be much easier to fix this, I hope.
*** Bug 615504 has been marked as a duplicate of this bug. ***
For me I cannot change orientation to Landscape and have it stick. It always comes back as portrait mode, blocking the primary types of printing I need to do. Very frustrating. Also, for me the Paper Size is stuck as A4. Changing it to letter (8.5x11) doesn't stick either, so I can't really print at all (what I need). This is on Windows Vista
*** Bug 624394 has been marked as a duplicate of this bug. ***
Created attachment 175381 [details] GTK Printing Fix Suggestion HP instant PRINT This is a screen grab of HP Instant Print application for Windows. It is a simple print utility for HP Wide Format DesignJET Printers for the Windows Environment. It would be ideal if there was an open source Wide Format Printing utility.
*** Bug 640655 has been marked as a duplicate of this bug. ***
*** Bug 674519 has been marked as a duplicate of this bug. ***
*** Bug 680616 has been marked as a duplicate of this bug. ***
*** Bug 684161 has been marked as a duplicate of this bug. ***
684161 is nowhere near a DUPLICATE of this.
With respect to Ubuntu Launchpad [1] the problem seems to be fixed in GTK2, but needs to be integrated into GIMP (see comment 72 there). [1] https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/998156
I have found a workaround for Windows users. Create a new Image of the size that you want your paper to be. Then copy and paste over any images you want and arrange them on the new canvas. Then export to a .pdf. Using Adobe Acrobat I was able to print on my desired paper. Windows photo viewer is also an option, but it wasn't cooperating for me. Example: In my case I was trying to two 2x2 inch pictures on 4x6 inch photo paper. I created a 4x6 inch canvas then copied 2 2x2 inch pictures on to that canvas. Then I exported the 4x6" canvas to a pdf. Opened up Adobe Acrobat and used it's native print functions to print to 4x6" photo paper.
*** Bug 704924 has been marked as a duplicate of this bug. ***
*** Bug 705173 has been marked as a duplicate of this bug. ***
The bug still exist in the latest GIMP release 2.8.8. with Windows 8. Can't set the page size as A3. The proposed workaround is not convenient since colour management and icc profiles can not be used. An other workaround is to use Linux. The page setup works, but colours are not the same as with windows version. Maybe there is a problem with printer drivers. My printer is Epson pro3880. Could you please correct this bug, At current state GIMP windows version is useless for a photographer.
Here we are, 6 years later, and this STILL isn't resolved. For the moment, I'm using MS Paint to print. That's pretty sad, when Paint is outperforming GIMP/GTK+. Is this actually going to get fixed? If not in GTK+, then when is GIMP going to use a different print system that actually works? I've always been a proponent of open-source software, and GIMP in particular. Or at least I was; not being able to print on non-letter-size paper is a HUGE drawback. So far the "workaround" is "don't use GIMP" - I may just have to take that advice permanently. And advise others to do the same.
*** Bug 725760 has been marked as a duplicate of this bug. ***
It's now been nearly 7 years since this bug was opened. It still hasn't been closed. I'm printing from Paint or the Windows Preview app. This problem essentially makes printing impossible unless you're printing 8.5x11. If you aren't going to make printing work, then how about disabling it or possibly putting up a nice dialog explaining that you've got better things to do than make a picture editing system that prints.
(In reply to comment #38) >Using Adobe Acrobat I was able to print on my desired paper. That's not a workaround- that's using an entirely different program to print from- you can do that from the start...
(In reply to comment #44) > It's now been nearly 7 years since this bug was opened. > > It still hasn't been closed. yes: nobody using Windows has evidently worked on this bug. you're welcome to try and debug it — possibly for GTK+ 3, but we can accept a backported patch for GTK+ 2 as well. it seems Sven, back in 2008, had some ideas, but nothing materialised; you may want to ask him if he remembers what he found. is there a minimal test case that demonstrates that the settings are not honoured or saved? what happens with different values of GtkPaperSize[1], as well as a custom size? this would help establishing whether or not it's a GTK bug. [1]: https://developer.gnome.org/gtk3/stable/GtkPaperSize.html
*** Bug 732420 has been marked as a duplicate of this bug. ***
The bug still exist in the latest GIMP release 2.8.18. with Windows. please fix this annoying BUG .
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla. If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab: https://gitlab.gnome.org/GNOME/gtk/issues/new