![Şirkətlər üçün Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-43-8dda6f.png)
Control default printer settings through policies.json file?
Is there a way control the default printer options that appear for the end user? If not by policies.json is there another way I am on 102.10 esr version.
All Replies (11)
print. is one of the pref branches that are supported for deploying Firefox, so you can make the changes and check in prefs.js what resulting prefs show.
Is this about Firefox in a company/enterprise environment as in that case we can move the thread over to the Firefox for Enterprise forum.
Yes, please move it to the enterprise forum thank you. I saw the print. in the github page but need the specific options to see if I can make it work.
Printer options or setting the default printer?
Unfortunately setting the default printer uses print_ not print. so it can't be set.
I'll get that fixed ASAP.
So what specifically I am looking for is to set the printing option to default to letter size paper / A4 paper size. though more options would be better so if I could find a comprehensive list of printer options that would be best.
so the best way to do this is to set the values you want in Firefox then go to about:config and search on "print."
You'll see the preferences that got set for the specific printer and then you can set those preferences to the values.
You can also open the printer dialog in a separate window and change the values and see how they are reflected in about:config.
I'll see if I can get a more specific answer.
Were you able to find anything? I have not been able to have any custom settings stay.
Were you able to find the preferences in about:config that you wanted to set?
Yes, but when I change them and go to the print screen, I don't see my changes being implemented.
So it looks like there are three values that need to be changed:
print.printer_PRINTER_NAME.print_paper_height 11.6929133858268
print.printer_PRINTER_NAME.print_paper_id 9
print.printer_PRINTER_NAME.print_paper_width 8.26771653543307
```
the paper_id is the thing that makes it switch to A4 (and then it changes height/width to correspond to that.
Modified
I have tried that and it seems to not change anything when I bring up the print screen.
Do you know how that would be formatted in a policies.json file?
I realize this is probably too little too late, but we added support for setting the type of preferences so that things could be probably set to 0 (and not end up boolean).
In addition, the paper_id is a string which is really confusing.
Here's the JSON for my printer to make it A4:
{
"print.printer_VersaLink_C505.print_paper_size_unit": { "Value": 0, "Type": "number" }, "print.printer_VersaLink_C505.print_paper_width": { "Value": "8.26771653543307", "Type": "string" }, "print.printer_VersaLink_C505.print_paper_height": { "Value": "11.6929133858268", "Type": "string" }, "print.printer_VersaLink_C505.print_paper_id": { "Value": "9", "Type": "string" }
}