[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: set default paper size in firefox?



Martin Dickopp wrote:
Matt Price <matt.price@utoronto.ca> writes:


the default paper size seems to be set to "A4" in my version of
firefox (0.9.3).  Anyone know how to change that setting?  I often
forget to reset the print option and end up with slightly-wrong page
lengths... I have tried messing with "prefs.js" but haven'th ad any luck.


In might depend on which printing method you use (postscript or xprint).
I use postscript printing, and for me, the following line in "user.js"
(or "prefs.js" or the "about:config" page...) works:

    user_pref("print.postscript.paper_size", "A4");

hmm... so this had already been set to "Letter" -- I tried "na-letter" as well and neither seems to have any effect. I don't know whether I use xprint or postscript -- I don't remember messing with the print system, so I expect firefox goes through CUPS to getthe printer names. Is this the default behaviour? Any other suggestions on where to set this value:
thx,
matt



(Of course, this sets the paper size *to* A4, so you should replace "A4"
with whatever paper size you want to use.)

Martin





Reply to: