After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 505123 - page setup does not work for paper sizes other than Letter and A4
page setup does not work for paper sizes other than Letter and A4
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Printing
2.14.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 555060 557992 562499 567609 604976 609891 karl 624394 PRINT 674519 680616 704924 705173 725760 732420 (view as bug list)
Depends on: 513291
Blocks:
 
 
Reported: 2007-12-22 22:26 UTC by cp
Modified: 2018-04-15 00:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GTK Printing Fix Suggestion HP instant PRINT (52.21 KB, image/jpeg)
2010-11-27 20:22 UTC, kwanderson
Details

Description cp 2007-12-22 22:26:39 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.
Comment 1 Sven Neumann 2007-12-23 14:05:18 UTC
What operating system are you using?
Comment 2 Mark Stewart 2007-12-24 20:56:30 UTC
(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)

Comment 3 Michael Schumacher 2008-02-04 10:34:05 UTC
Let's set this to depend on bug #513291, because this should at least make the adjustments possible.
Comment 4 Michael Schumacher 2008-07-22 12:09:25 UTC
I should try this in trunk.
Comment 5 Sven Neumann 2008-08-20 18:13:52 UTC
Michael, did you get a chance to try this in trunk?
Comment 6 Michael Schumacher 2008-08-27 00:28:10 UTC
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).
Comment 7 Sven Neumann 2008-08-27 07:27:37 UTC
Could you check what's written into ~/.gimp-2.5/print-page-setup ?
Comment 8 Michael Schumacher 2008-09-16 22:31:49 UTC
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
Comment 9 Sven Neumann 2008-09-17 06:15:55 UTC
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"?
Comment 10 Michael Schumacher 2008-09-17 07:29:08 UTC
"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.

Comment 11 Michael Schumacher 2008-09-17 15:01:21 UTC
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.
Comment 12 Michael Schumacher 2008-09-17 15:02:19 UTC
And this was with GTK+ 2.14.1.
Comment 13 Philip Kao 2008-10-05 05:51:15 UTC
*** Bug 555060 has been marked as a duplicate of this bug. ***
Comment 14 Philip Kao 2008-10-05 05:53:14 UTC
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.
Comment 15 Philip Kao 2008-10-05 06:04:03 UTC
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.
Comment 16 Sven Neumann 2008-10-05 10:54:04 UTC
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.
Comment 17 Philip Kao 2008-10-05 18:39:04 UTC
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?
Comment 18 Sven Neumann 2008-10-05 18:43:22 UTC
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.
Comment 19 Sven Neumann 2008-10-28 06:47:50 UTC
*** Bug 557992 has been marked as a duplicate of this bug. ***
Comment 20 Sven Neumann 2008-11-27 23:19:47 UTC
*** Bug 562499 has been marked as a duplicate of this bug. ***
Comment 21 Michael Schumacher 2009-01-13 16:03:00 UTC
*** Bug 567609 has been marked as a duplicate of this bug. ***
Comment 22 kolAflash 2009-06-30 11:03:55 UTC
*** Bug 587380 has been marked as a duplicate of this bug. ***
Comment 23 kolAflash 2009-06-30 11:44:36 UTC
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!!!
Comment 24 Sven Neumann 2009-12-19 13:40:31 UTC
*** Bug 604976 has been marked as a duplicate of this bug. ***
Comment 25 Sven Neumann 2010-02-15 22:16:55 UTC
*** Bug 609891 has been marked as a duplicate of this bug. ***
Comment 26 Kai Schaetzl 2010-04-11 18:21:55 UTC
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.
Comment 27 Sven Neumann 2010-04-13 18:29:28 UTC
*** Bug 615504 has been marked as a duplicate of this bug. ***
Comment 28 Reto 2010-04-14 15:54:00 UTC
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
Comment 29 Reto 2010-04-14 23:07:49 UTC
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
Comment 30 Michael Schumacher 2010-07-15 07:36:34 UTC
*** Bug 624394 has been marked as a duplicate of this bug. ***
Comment 31 kwanderson 2010-11-27 20:22:07 UTC
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.
Comment 32 Michael Schumacher 2011-06-15 23:05:30 UTC
*** Bug 640655 has been marked as a duplicate of this bug. ***
Comment 33 Michael Schumacher 2012-05-28 11:09:38 UTC
*** Bug 674519 has been marked as a duplicate of this bug. ***
Comment 34 Michael Natterer 2012-09-03 07:59:56 UTC
*** Bug 680616 has been marked as a duplicate of this bug. ***
Comment 35 Michael Schumacher 2012-10-06 19:06:03 UTC
*** Bug 684161 has been marked as a duplicate of this bug. ***
Comment 36 Al 2012-10-06 20:55:12 UTC
684161 is nowhere near a DUPLICATE of this.
Comment 37 Max Mustermann 2012-10-13 06:19:49 UTC
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
Comment 38 DaOneEnOnly 2013-05-28 06:12:13 UTC
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.
Comment 39 Michael Schumacher 2013-07-26 12:03:11 UTC
*** Bug 704924 has been marked as a duplicate of this bug. ***
Comment 40 Michael Schumacher 2013-10-04 11:26:36 UTC
*** Bug 705173 has been marked as a duplicate of this bug. ***
Comment 41 fisus 2013-11-11 22:27:35 UTC
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.
Comment 42 albegadeep 2013-11-12 22:16:38 UTC
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.
Comment 43 Michael Schumacher 2014-03-11 13:05:52 UTC
*** Bug 725760 has been marked as a duplicate of this bug. ***
Comment 44 Matt 2014-07-31 20:57:57 UTC
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.
Comment 45 Matt 2014-07-31 20:59:05 UTC
(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...
Comment 46 Emmanuele Bassi (:ebassi) 2014-08-01 02:54:40 UTC
(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
Comment 47 Michael Schumacher 2014-08-15 08:49:35 UTC
*** Bug 732420 has been marked as a duplicate of this bug. ***
Comment 48 Hamid 2016-11-26 19:35:28 UTC
The bug still exist in the latest GIMP release 2.8.18. with Windows.
please fix this annoying BUG .
Comment 49 Matthias Clasen 2018-02-10 05:23:39 UTC
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.
Comment 50 Matthias Clasen 2018-04-15 00:30:31 UTC
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