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 385680 - Problem with Landscape printing
Problem with Landscape printing
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
0.14.x
Other All
: Normal major
: ---
Assigned To: planner-maint
planner-maint
: 331258 407066 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-12-14 01:13 UTC by Kleber Leal
Modified: 2008-11-08 11:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot of landscape printing (160.79 KB, image/png)
2006-12-14 01:28 UTC, Kleber Leal
Details
In portrait mode (good) (26.74 KB, application/pdf)
2008-02-23 13:06 UTC, Luis Menina
Details
In landscape mode (wrong) (31.68 KB, application/pdf)
2008-02-23 13:07 UTC, Luis Menina
Details

Description Kleber Leal 2006-12-14 01:13:35 UTC
Please describe the problem:
when you try to print on landscape orientation, the project is not correctly viewed on screen. the print is not positioned on print area and the orientation of content is not correct.

Steps to reproduce:
1. open a project 
2. click on print
3. set orientation to Landscape
4. visualize the printing


Actual results:
the orientation of the project is showed on incorrect form with contents out of printing area.

Expected results:
the orientation of the project should be on landscape correctly. all content should be on print area

Does this happen every time?
yes

Other information:
Comment 1 Kleber Leal 2006-12-14 01:28:58 UTC
Created attachment 78333 [details]
screenshot of landscape printing
Comment 2 bart 2007-05-08 09:36:35 UTC
I am having the exact same problem in version 14.2. I am willing to do some hacking work on the code if someone can give some clues where to look. 
Comment 3 Luis Menina 2007-06-25 15:23:40 UTC
Confirming too, I have the same problem. Printing in landscape mode to whatever source, be a PDF or a printer, will never work properly. The size and scale is good, but the whole content needs a 90° rotation counter-clockwise. Kinda annoying, as it's impossible to print anything that way. Exporting to HTML and trying to print with Firefox is even worse.
Comment 4 Luis Menina 2007-06-25 15:59:27 UTC
Ok, here's a workaround (goddamn, lost two hours on this): check first with PDF printing that it works for you.
1. Switch to the "paper" tab
2. Set the paper size to "custom"
3. invert the width/height: for A4, I use width=29.7, height=21
4. Set the page orientation to "portrait"

The width/height inversion will do the trick, and I think it will also work for formats other than A4.
Comment 5 Maurice van der Pot 2008-01-19 21:14:50 UTC
I am unable to reproduce this problem. What version of libgnomeprint do you have installed? Does it happen only with specific .planner files? If so, please attach one.
Comment 6 Luis Menina 2008-01-19 21:26:33 UTC
That was with libgnomeprint 2.18.0, and my system now runs 2.18.2. I'll check if this still happens or not.
Comment 7 Luis Menina 2008-02-23 13:04:16 UTC
Reproduced with libgnomeprint 2.18.2 and planner 0.14.2 on Mandriva 2008.0 with any file. Just try to print (to a pdf, or printer) in portrait mode, and in landscape mode, and compare both. The orientation of the landscape mode is wrong.
Comment 8 Luis Menina 2008-02-23 13:06:43 UTC
Created attachment 105813 [details]
In portrait mode (good)
Comment 9 Luis Menina 2008-02-23 13:07:30 UTC
Created attachment 105814 [details]
In landscape mode (wrong)
Comment 10 Luis Menina 2008-02-23 13:08:55 UTC
Oh, and running from console, I have these warnings when displaying the print options dialog.

[luis@donald ~]$ LC_ALL=C planner

** (planner:8290): WARNING **: IPP request failed with status 1280

** (planner:8290): WARNING **: IPP request failed with status 1280
Comment 11 Maurice van der Pot 2008-11-07 19:05:42 UTC
For some reason I missed the replies to my question. 

The printing code in Planner has just been rewritten to use GTK+ printing.
I was able to reproduce this problem with 0.14.2 and 0.14.3 when printing to PDF and a test with the development version shows that this problem has been solved.

The next release will contain the fix for this problem. Thanks for reporting it.
Comment 12 Maurice van der Pot 2008-11-07 19:08:51 UTC
*** Bug 407066 has been marked as a duplicate of this bug. ***
Comment 13 Maurice van der Pot 2008-11-07 19:12:13 UTC
*** Bug 331258 has been marked as a duplicate of this bug. ***
Comment 14 rafazap 2008-11-08 00:22:52 UTC
The latest version of gnumeric available to me on fedora 9 is 1.6.3, and you're closing this as resolved?  I will continue to have this problem until the updated version is available via yum.

I already tried to upgrade by compiling from source and hit "dependency hell".  I won't bother trying that again.

(Also, how can a previous bug be a duplicate of a later one?  This seems counterintuitive somehow.)
Comment 15 Luis Menina 2008-11-08 01:57:46 UTC
(In reply to comment #14)
> The latest version of gnumeric available to me on fedora 9 is 1.6.3, and you're
> closing this as resolved?  I will continue to have this problem until the
> updated version is available via yum.

Hu ? What's the point ? This was a planner bug, not gnumeric.
Comment 16 rafazap 2008-11-08 06:22:20 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > The latest version of gnumeric available to me on fedora 9 is 1.6.3, and you're
> > closing this as resolved?  I will continue to have this problem until the
> > updated version is available via yum.
> 
> Hu ? What's the point ? This was a planner bug, not gnumeric.
> 

Not true.  Please see comment #13.

(I'm sorry, perhaps I should have made my comment (#14) a response to #13.)
Comment 17 Maurice van der Pot 2008-11-08 11:26:27 UTC
The reason that the same problem occurred in other applications is because there is a bug in libgnomeprint. However, libgnomeprint has been deprecated and applications should be migrated to GTK+ printing.

Normally a bug report would be submitted for libgnomeprint to fix it in all applications at once, but in this case no more work is going to be done on libgnomeprint and the bug should actually be solved by porting the applications to use GTK+ printing. 

Because there can only be one assignee for each bug it is easiest for the developers to have a separate report for each application that people encounter this issue with. But even if no bugs would be reported for an application, all application developers know that they will need to migrate so it will be solved at some point anyway.


In this case both this bug and bug #331258 were submitted on Planner and both of them were assigned to the Planner maintainers. I therefore consider them fixed now that Planner has been ported to GTK+ printing.

I agree that making the earlier one a dupe of this one is a bit strange. I just noticed the older one after I had already closed this one as RESOLVED/FIXED. I also understand that this situation of using separate bug reports for the same issue is confusing to users who do not have the info that developers have, but I hope my explanation helps with this and hopefully things like this will not happen that often.