The default bug view has changed. See this FAQ.

Default margins are too low for A4 printing size

RESOLVED DUPLICATE of bug 130075

Status

()

Core
Printing: Output
RESOLVED DUPLICATE of bug 130075
9 years ago
9 years ago

People

(Reporter: Pacho Ramos, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.8.1.11) Gecko/20071205 Firefox/2.0.0.11
Build Identifier: 

Firefox/Seamonkey default to 0.04 inches as default margins for printing. These values are too small causing text to be cut off. 

I have done some tests and the best value for me is "0.14 inches" for ALL margins

Thanks a lot for fixing  this

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Comment 1

9 years ago
I get the same problem, no matter what I set the margins to. Example attached, printed to PDF with the following settings:
user_pref("print.postscript.cups.enabled", true);
user_pref("print.postscript.paper_size", "A4");
user_pref("print.print_printer", "foo");
user_pref("print.printer_CUPS/foo.print_bgcolor", false);
user_pref("print.printer_CUPS/foo.print_bgimages", false);
user_pref("print.printer_CUPS/foo.print_colorspace", "default");
user_pref("print.printer_CUPS/foo.print_command", "lpr ${MOZ_PRINTER_NAME:+-P\"$MOZ_PRINTER_NAME\"}");
user_pref("print.printer_CUPS/foo.print_downloadfonts", false);
user_pref("print.printer_CUPS/foo.print_evenpages", true);
user_pref("print.printer_CUPS/foo.print_footercenter", "");
user_pref("print.printer_CUPS/foo.print_footerleft", "");
user_pref("print.printer_CUPS/foo.print_footerright", "");
user_pref("print.printer_CUPS/foo.print_headercenter", "");
user_pref("print.printer_CUPS/foo.print_headerleft", "");
user_pref("print.printer_CUPS/foo.print_headerright", "");
user_pref("print.printer_CUPS/foo.print_in_color", true);
user_pref("print.printer_CUPS/foo.print_margin_bottom", "0.5");
user_pref("print.printer_CUPS/foo.print_margin_left", "0.5");
user_pref("print.printer_CUPS/foo.print_margin_right", "0.5");
user_pref("print.printer_CUPS/foo.print_margin_top", "0.5");
user_pref("print.printer_CUPS/foo.print_oddpages", true);
user_pref("print.printer_CUPS/foo.print_orientation", 0);
user_pref("print.printer_CUPS/foo.print_pagedelay", 500);
user_pref("print.printer_CUPS/foo.print_paper_data", 0);
user_pref("print.printer_CUPS/foo.print_paper_height", "297.00");
user_pref("print.printer_CUPS/foo.print_paper_name", "A4");
user_pref("print.printer_CUPS/foo.print_paper_size", 0);
user_pref("print.printer_CUPS/foo.print_paper_size_type", 1);
user_pref("print.printer_CUPS/foo.print_paper_size_unit", 1);
user_pref("print.printer_CUPS/foo.print_paper_width", "210.00");
user_pref("print.printer_CUPS/foo.print_plex_name", "default");
user_pref("print.printer_CUPS/foo.print_resolution_name", "default");
user_pref("print.printer_CUPS/foo.print_reversed", false);
user_pref("print.printer_CUPS/foo.print_scaling", "  1.00");
user_pref("print.printer_CUPS/foo.print_shrink_to_fit", true);
user_pref("print.printer_CUPS/foo.print_to_file", false);
user_pref("print.printer_CUPS/foo.print_to_filename", "/home/username/mozilla.ps");

Comment 2

9 years ago
Created attachment 300015 [details]
Example erroneous print

Printed from http://www.google.com/webhp?hl=en

Comment 3

9 years ago
This is not restricted to A4 paper size, also occurs with US Letter.

Ideally, the 0.04 inch would be counted from the printable area, and not from the full paper area. Thus, the PostScript module would need to obtain this information from CUPS and apply those margins accordingly.

Some distributions override those settings as a workaround, e.g., this is what comes with OpenSUSE in all-novell.js:

> pref("print.print_edge_top", 14); // 1/100 of an inch
> pref("print.print_edge_left", 16); // 1/100 of an inch
> pref("print.print_edge_right", 16); // 1/100 of an inch
> pref("print.print_edge_bottom", 14); // 1/100 of an inch

which doesn't fit for some printers either though.

Comment 4

9 years ago
The original description as well as my comment #3 appear to be duplicates of
bug 130075, the main issue being how to identify the printable paper area.

This may also be related to bug 417356.

As for comment #1, I don't see any of the print.*.print_edge_* preferences
set, thus you may not have modified the correct settings (those are in the
printer properties dialog, not the margins in the general page setup).
The printout in comment #2 is in US-letter format, thus cropped by 0.69'' at
the top, making it hard to see if the top headers are present or not.

Comment 5

9 years ago
> (comment #3) Thus, the PostScript module would need to obtain this
> information from CUPS and apply those margins accordingly.

The best fit for this would be bug 284925 (general bug for CUPS parameters).

Unless either of you gets back with more information within the next two weeks, I think that this is bug 130075 and should be resolved as a duplicate then.
Whiteboard: closeme 04/18
(Reporter)

Comment 6

9 years ago
I don't know if this is exact the same problem :-/, now I use opensuse's workaround and work ok for me :-|

Sorry for not giving you much more info :-(

Comment 7

9 years ago
If increasing the margins brings the headers and footers completely into the printable area of your printer, it is the same problem as described here.
(Reporter)

Comment 8

9 years ago
Yes, all info is printed fine using this workaround.

Comment 9

9 years ago
No more comments came in, thus resolving.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → DUPLICATE
Whiteboard: closeme 04/18
Duplicate of bug: 130075
You need to log in before you can comment on or make changes to this bug.