Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Om de ûnderfining foar jo te ferbetterjen is tydlik de funksjonaliteit dan dizze website troch ûnderhâldswurk beheind. Wannear in artikel jo probleem net oplost en jo in fraach stelle wolle, kin ús stipemienskip jo helpe yn @FirefoxSupport op Twitter en /r/firefox op Reddit.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

How can I use metric units in Page Setup dialog box?

  • 7 antwurd
  • 38 hawwe dit probleem
  • 1 werjefte
  • Lêste antwurd fan Glenn 8D

more options

When I go to my Page Setup dialog box, in Margins tabs, I see that I can specify the margins in inches. However, in my friends PCs, I have seen Page Setup dialog boxes that use millimeters for handling margins.

How can I make my version of Firefox to use millimeters instead of inches? Using this obscure unit is inconvenient for me. I prefer to use the internationally-accepted metric unit.

When I go to my Page Setup dialog box, in Margins tabs, I see that I can specify the margins in inches. However, in my friends PCs, I have seen Page Setup dialog boxes that use millimeters for handling margins. How can I make my version of Firefox to use millimeters instead of inches? Using this obscure unit is inconvenient for me. I prefer to use the internationally-accepted metric unit.

Bewurke troch Fleet Command op

Alle antwurden (7)

more options

I can't find documentation about the settings, so you'll need to experiment a bit. I hope you're using A4 paper size instead if US- Letter, because I suspect that you will find out that the length of the paper won't be able to be set to Letter if you use the metric size unit setting.

Type about:config in the URL bar and hit Enter.
If you see the warning, you can confirm that you want to access that page.

Pref name = print.printer_printer_name.print_paper_size_unit
and maybe
print.printer_printer_name.print_paper_size_type
Try setting the Value to 1


There's a support thread about metric settings here. http://forums.mozillazine.org/viewtopic.php?f=39&t=588284

more options

Well, you're answer didn't exactly help (see the included screenshot). but I think now I know what I should do: I should get to one of my friend's computers and peak into their pref.js. (Hopefully, they won't mind!) Perhaps, I can do that by the end of this week when I return home...

And yes, I'm using international papers too. US Letter paper is hard to come by here. A4, A5, B4 and B5 are what I use.

Bewurke troch Fleet Command op

more options

Total failure! It seems Firefox internally saves the margin values in Inches.

Anyone has any other ideas?

more options

Keazen oplossing

Bewurke troch cor-el op

more options

That entire js file is based upon inch measurement, with a multiplication factor of 25.4 for conversion to millimeters. WTF was Netscape thinking when they wrote that file, in (what) 1994 or 1995?

Take a look starting at line 188 - function createPaperArrayFromDefaults() - and down from there.

I wonder how that is handled in localizations like en-GB versions of Firefox?

more options

Thanks cor-el. The code you have posted helped!

I have discovered that Firefox displays "inch" or "millimeters" depending on the type of paper user selects! Hence, when user selects A4 paper, the dialog box automatically shows "millimeters".

The very subtle trick was: Choose the paper size first and apply the settings! (I was trying to do both simultaneously.) There is no way to do so except by printing once with wrong settings or via about:config dialog box. Another aspect of Firefox print-unfriendliness... (If I may say so, Internet Explorer 7 or later prints much better.)

more options

"Firefox displays "inch" or "millimeters" depending on the type of paper user selects!"

I really thought there would be a Metric/Standard (US/UK) toggle selection option. There is a few problems with using paper type for determining measurement type. For Example, I have multiple printers and each has different paper type. To change and save a paper type I have to print a page for that to become the current default OR go to Printers & Faxes (MSWindows) and permanently change the default settings.

Thank You, Fleet Commander for posting measurement type depends upon paper type selected. Because of it, I was at able to find a work-around. :)