Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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

  • 7 답장
  • 38 이 문제를 만남
  • 1 보기
  • 최종 답변자: 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.

글쓴이 Fleet Command 수정일시

모든 댓글 (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.

글쓴이 Fleet Command 수정일시

more options

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

Anyone has any other ideas?

more options

선택된 해결법

글쓴이 cor-el 수정일시

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. :)