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 346110 - Headers and footers may be unvisible
Headers and footers may be unvisible
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: Printing
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 415861 (view as bug list)
Depends on: 468989
Blocks:
 
 
Reported: 2006-06-28 13:57 UTC by Malte
Modified: 2014-01-02 23:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sets page header and footer margins to a reasonable value (1.14 KB, patch)
2007-08-21 00:52 UTC, Dale Parquette
committed Details | Review

Description Malte 2006-06-28 13:57:10 UTC
When printing from Epiphany, the page headers and footers are positioned at the very edge of the page - there's no margin between the page edge and the header/footer. This means that the header/footer text is not (or only partly) visible if your printer does not reach the paper edges. I suppose that this is the case for most printers used at home.

The printing dialog in Firefox has an option called »Gap from edge of paper to margin« which can be used for a workaround. There is no obvious workaround for Epiphany.
Comment 1 Christian Persch 2006-07-20 15:55:54 UTC
Does this still happen with epiphany 2.15 which is using the new gtk print dialogues?
Comment 2 Malte 2006-07-20 20:43:37 UTC
I've spent hours now trying to compile a release of gtk that goes with epiphany 2.15, but did not succeed, getting an error about undefined references to g_bookmark_file_* symbols. So I'm afraid I cannot report about that.
Comment 3 Reinout van Schouwen 2006-07-20 21:02:29 UTC
The Print Preview on epiphany 2.15.4 (Mandriva Cooker) seems to confirm this problem.
Comment 4 Christian Persch 2007-01-23 18:19:28 UTC
Does the same occur in firefox if you set headers/footers ?
Comment 5 Reinout van Schouwen 2007-03-18 10:33:08 UTC
The same thing happens in Firefox, except that Firefox has a 'Properties' dialog under the Print dialog that allows to change the gap setting mentioned in comment #0. When increasing that setting the header is positioned lower on the page.
Comment 6 Christian Persch 2007-03-18 12:44:06 UTC
You can set the margins in epiphany too, File->Print setup .
Comment 7 Reinout van Schouwen 2007-03-18 13:56:12 UTC
After looking really carefully under the Page sizes dropdown I found that I could specify my own page size with custom margins. (This has to be one of the best hidden dialogs in all of GNOME!) However, after changing the top margin from 0 to 10 mm, the print preview still shows the header directly along the top of the page.
Comment 8 Christian Persch 2007-05-30 13:23:21 UTC
*** Bug 415861 has been marked as a duplicate of this bug. ***
Comment 9 Christian Persch 2007-05-30 13:23:56 UTC
This is probably a gecko bug then.
Comment 10 Dale Parquette 2007-08-21 00:52:04 UTC
Created attachment 94031 [details] [review]
Sets page header and footer margins to a reasonable value

I'm printing from Gnome using LPRng, not CUPS. However, in either case, XUL runner reads the page header/footer margins from javascript. It might be the case that CUPS users may have to change the printer's name within the patch from "PostScript/default" to "CUPS/default" or something similar. Nothing has to be recompiled, just modify "default-prefs.js" for a quick test.
Comment 11 Christian Persch 2007-08-21 21:11:47 UTC
Thanks for figuring this out!

We always use the PostScript/default printer, so the prefs names should be ok.

Now this shouldn't hard-code the values of course, but instead use something that corresponds to what the printer actually supports; but gtk doesn't expose this info. I've filed bug 468989 for that.

Also we'll need to file a gecko bug since setting prefs for this is really not the right way.
Comment 12 Christian Persch 2007-09-15 14:53:26 UTC
Filed as https://bugzilla.mozilla.org/show_bug.cgi?id=396278 .
Comment 13 Christian Persch 2007-11-10 14:08:28 UTC
let's get this work-around in for now. The upstream bug is close to checkin, but we still depend on the gtk feature which won't be done until gtk+ 2.14.

Trunk and gnome-2-20 please. Thanks for the patch!
Comment 14 Cosimo Cecchi 2007-11-12 00:32:13 UTC
Committed. Leaving the bug open for a proper resolution when upstream mozilla and gtk+ bugs are solved.
Comment 15 Reinout van Schouwen 2009-12-05 13:32:59 UTC
@Cosimo, now that bug 468989 is fixed, what can we do here? Mozilla bugs are no longer relevant of course.
Comment 16 William Jon McCann 2014-01-02 23:46:11 UTC
Sounds obsolete to me. If still an issue please reopen.