Default margins are too low for A4 printing size




Printing: Output
10 years ago
10 years ago


(Reporter: Pacho Ramos, Unassigned)


Firefox Tracking Flags

(Not tracked)



(1 attachment)



10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv: Gecko/20071205 Firefox/
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:

Comment 1

10 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/");

Comment 2

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

Printed from

Comment 3

10 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

10 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

10 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

Comment 6

10 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

10 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.

Comment 8

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

Comment 9

10 years ago
No more comments came in, thus resolving.
Last Resolved: 10 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.