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 491230 - Print orientation and border incorrect
Print orientation and border incorrect
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Printing
2.12.x
Other Windows
: Normal major
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
: 491232 499585 630603 (view as bug list)
Depends on: 480086
Blocks:
 
 
Reported: 2007-10-29 00:29 UTC by hblarson
Modified: 2018-02-10 04:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initial screen (24.22 KB, image/png)
2007-10-29 13:59 UTC, hblarson
Details
Second screen (35.40 KB, image/png)
2007-10-29 14:00 UTC, hblarson
Details
Third screen (25.17 KB, image/png)
2007-10-29 14:00 UTC, hblarson
Details
Fourth screen (29.73 KB, image/png)
2007-10-29 14:01 UTC, hblarson
Details
Fifth screen (29.73 KB, image/png)
2007-10-29 14:02 UTC, hblarson
Details
Sixth screen (11.76 KB, image/png)
2007-10-29 14:03 UTC, hblarson
Details

Description hblarson 2007-10-29 00:29:10 UTC
This report affects GIMP-2.4.0-stable

Prints from jpeg files result in blank prints.
Comment 1 Sven Neumann 2007-10-29 07:42:01 UTC
Printing is done using GtkPrintOperation. I would like to reassign this report to  GTK+, but in order to do that we need to know the version of GTK+ that you using.
Comment 2 Sven Neumann 2007-10-29 07:53:37 UTC
Please do also give details about your system, the printer, the printer driver and whatever else may be relevant.
Comment 3 Michael Schumacher 2007-10-29 08:36:12 UTC
Hm... if this is Jernej's installed, it is GTK+ 2.10.14.
I thought the installer packages did include 2.12 already.

Reassign or update first?
Comment 4 hblarson 2007-10-29 13:59:48 UTC
Created attachment 98099 [details]
Initial screen
Comment 5 hblarson 2007-10-29 14:00:20 UTC
Created attachment 98100 [details]
Second screen
Comment 6 hblarson 2007-10-29 14:00:48 UTC
Created attachment 98101 [details]
Third screen
Comment 7 hblarson 2007-10-29 14:01:45 UTC
Created attachment 98102 [details]
Fourth screen
Comment 8 hblarson 2007-10-29 14:02:34 UTC
Created attachment 98103 [details]
Fifth screen
Comment 9 hblarson 2007-10-29 14:03:05 UTC
Created attachment 98104 [details]
Sixth screen
Comment 10 hblarson 2007-10-29 14:10:14 UTC
After using the page setup feature the jpeg did print but with incorrect orientation and border specification.  The details are shown in the attachments.  I believe the blank prints were caused by the wrong print size information being sent to the printer and this because of not using the page setup.  Nevertheless, this feature needs major work which should become apparent by examining the screen shots.
Comment 11 hblarson 2007-10-29 14:12:43 UTC
System info:  Pentium D, 3GHz, Windows XP Media Center Edition v2002 sp2.

Printer info:  EPSON R1800, EPSON Color Printing System v6.50
Comment 12 hblarson 2007-10-29 14:18:32 UTC
*** Bug 491232 has been marked as a duplicate of this bug. ***
Comment 13 Sven Neumann 2007-10-29 15:22:25 UTC
Reassigning to GTK+. Somehow I doubt that this will be fixed anytime soon unless someone interested in Printing on Win32 shows up and volunteers for working on it.

But then, perhaps updating to GTK+ 2.12 would already improve things...
Comment 14 hblarson 2007-10-29 20:11:07 UTC
I think assignment of this bug should be reconsidered.  Here's why:  I have reverted to GIMP 2.2.17 with GTK+-2.10.13 and the print function performs flawlessly.  Since GTK+-2.10.13 is common to both versions of GIMP, I am suggesting where dividing line between GIMP and GTK lies should be considered in assigning the responsibility.
Comment 15 Sven Neumann 2007-10-29 21:04:11 UTC
GIMP didn't use any GTK+ code for printing in 2.2. The Print plug-in has been completely rewritten and now uses GtkPrintOperation.
Comment 16 Tor Lillqvist 2007-10-30 23:26:30 UTC
That the user interface elements on the Image Settings tab of the Print dialog become "dead" after returning from the Adjust Page Size and Orientation dialog is handled in bug #480086. Let's keep this bug open, though, for the other problems you notice.
Comment 17 Tor Lillqvist 2007-10-30 23:29:40 UTC
I am also changing GTK+ version of this bug to 2.12 as that is the maintained version. It is pointless to point out problems in 2.10.x versions. Hopefully the next build of the installer of GIMP for Windows will bundle the (at that time) latest GTK+ 2.12 instead of 2.10.
Comment 18 strata_ranger 2007-11-04 14:08:42 UTC
The 2.4.1 Windows installer includes GTK 2.12 as part of the bundle, yet the problem persists.

(In reply to comment #16)
> That the user interface elements on the Image Settings tab of the Print dialog
> become "dead" after returning from the Adjust Page Size and Orientation dialog
> is handled in bug #480086. Let's keep this bug open, though, for the other
> problems you notice.
> 

I have experienced this problem too.  I did notice, however, that if you still click on the "OK" button to print the image, then the NEXT time you open the Print dialog again, the Image Settings tab (and subsequent print job) reflects whatever orientation and margins you last specified.

Things on my machine were complicated just a little by me installing GIMP 2.4.1 (+ GTK 2.12) directly on top of 2.2, so all my 2.2 plug-ins (such as the older "winprint.exe" -- which works fine except for not verifying the actual printable area or having a preview image) are still on the menus, resulting in a "Page Setup", "Print...", and "Print" command.  Ugh.
Comment 19 Sven Neumann 2007-11-26 07:49:20 UTC
*** Bug 499585 has been marked as a duplicate of this bug. ***
Comment 20 André Klapper 2012-01-05 13:36:38 UTC
hblarson, strata_ranger: Is this still a problem for you in a recent version? If so, which gtk+ and Microsoft Windows versions do you use nowadays, and which application to print from?
Comment 21 strata_ranger 2012-01-06 19:22:04 UTC
Sure, I've got time to experiment.  Let's see:

- Win32 XP Home +SP3
- GIMP 2.6.11 (with bundled GTK, 2.10.0)
- HP DeskJet 5940 (minimum print margins: 0.13" left and right, 0.06" top, 0.58" bottom)

- The margins shown under GIMP's Page Setup are the default 0.25" for all sides except the bottom (which shows 0.58", printer minimum).

Okay, so here are my prints and their results on paper:

Print #1: Specified "Center: Both" under GIMP's Print > Image Settings.
- Result: The printout is located about 0.75" from the top paper edge and about 0.5" from the left paper edge.

Print #2: Checked "Ignore page margins" under my Image Settings.  Everything else is left the same.
- Result: The output is located at approximately 0.25" (9mm) from left edge and 0.5" (13mm) from the top edge.

-----

Note that the difference between the two printouts is approximately 0.25" in both directions, which coincidentally matches the values specified under GIMP's Page Setup ... hmm, let's confirm that before doing anything else:

---------

Print #3: Adjusted my GIMP Page Margins to 0" on all sides (quickly autocorrected to the printer minimums: 0.13" right and left, 0.06" top, 0.58" bottom).  Remaining settings are left the same as #1:  Centered on both dimensions, "Ignore page margins" OFF.
- Result: The output is located about 7/16" (12mm) from the left edge and 0.5" (14mm) from the top edge.

Print #4: Enabled "Ignore page margins", other settings left as is.
- Result: Same as result #2, 0.25" from left edge and 0.5" from top.

-----

Comparing #3 and #4, there is a 3mm difference between the left margins and a 1mm difference between the top margins -- corresponds to the 0.13" and 0.06" values specified under my GIMP page settings.  So the "Ignore page margins" options DOES work, so if I really need my output centered I can work around it with careful tweaks to my page setup.  But that's aside the point.

-----

Print #5: Under my Print Image Settings, with "Ignore Page Margins" set, I manually adjusted the "Position" values to "Left: 0" and "Top: 0".
- Result: My printout is now located 3mm from the left edge and 2mm from the top edge.  This roughly corresponds with my printer minimums; it IS the behavior that should be expected under the conditions of this particular print.

Okay, I think I'm on to something.  Continuing to experiment....
-----

Print #6: Manually specified "Left: 1" and "Top: 1".  "Ignore Page Margins" still set.
- Result: Output is about 1/4" (6mm) from left edge and 3/8" (5mm) from top edge - a 3mm difference in both directions.

Print #7: Increased the Left and Top offsets from 1 to 2.
- Result: 3/8" (9mm) from left edge and 5/16" (8mm) from top edge -- again, a 3mm difference in both directions.

Print #8: Increased the Left and Top offsets from 2 to 3.
- Result: 1/2" (13mm) from left edge and 7/16" (11mm) from top edge -- still approximately a 3mm difference in both directions.
---------

Okay this explains a lot.  Under current GIMP and its Win32 Print plugin:

- The "Centering" option actually does work -- all it does is manually fix the "Position" settings to whatever values represent centered output.  (For my particular test image, these values happen to be Left 1.8", Top 3.6")
- "Ignore Page Margins" option works; when enabled, output is placed relative to the minimum printer margins instead of GIMP's page margins.

- The "Position" settings (Left/Top/etc.) DO work at least consistently, but not correctly.  They are expressed in the same units of measure as the "Size" options above them ("Inches" in my case) but for every 1" of offset I specify in the dialog I am actually getting only 3mm of offset on paper.  THIS is why my print output isn't getting centered -- the dialog says it is, but the actual values sent to the printer aren't converted properly.  The actual unit of measure doesn't matter either -- I set things to "Millimeters" and specified Left and Top offsets of 50mm (roughly 2") and what do I get on paper? Offsets of about 8-9mm rom the paper edge.  I am seeing like a 10:1 ratio between the offsets I specify and the actual placement on paper.

- However, if I pad my image size out by the desired offset (expressed in image pixels) then I can indeed locate my printout anywhere on the paper, since GIMP does at least print it at the correct dpi.

- "Ignore Page Margins" does work -- when disabled, the printer output is located relative to my minimum printer margins, ignoring the values I specified in GIMP's Page Margins.

- But "Ignore Page Margins" doesn't entirely work correctly -- or, more precisely, GIMP's "Page Margins" themselves don't work correctly.  If I specify a 0.5" left margin then my printout should be located exactly 0.5" from the left edge of the Paper, but instead it's located 0.5" from the printer's Minimum Left Margin (an extra 0.13" from the edge of the paper).  And since the Page Setup dialog won't let you specify values less than your minimum printer margins (it immediately autocorrects them), when "Ignore Page Margins" is disabled, the closest I can get to the edge of the paper is actually twice my printer margin, when I should be able to get snug up to the printer margin itself.

---------

That's all for my experiments in GIMP.  Perhaps I should experiment with Inkscape printing since it is also GTK backed.
Comment 22 Max Mustermann 2012-10-13 05:32:30 UTC
*** Bug 630603 has been marked as a duplicate of this bug. ***
Comment 23 Matthias Clasen 2018-02-10 04:39:17 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.