Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Control default printer settings through policies.json file?

  • 11 ответов
  • 0 имеют эту проблему
  • 2 просмотра
  • Последний ответ от Mike Kaply

more options

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.

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.

Все ответы (11)

more options

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.

more options

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.

more options

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.

more options

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.

more options

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.

more options

Were you able to find anything? I have not been able to have any custom settings stay.

more options

Were you able to find the preferences in about:config that you wanted to set?

more options

Yes, but when I change them and go to the print screen, I don't see my changes being implemented.

more options

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.

Изменено Mike Kaply

more options

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?

more options

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"
   }

}