(In reply to Rog from comment #3) > What should we put in paper_id? The `print_paper_id` should be the correct one, and 9 should still be the value that you need for A4. The values and names can be found here: https://searchfox.org/mozilla-central/rev/25d5a4443a7e13cfa58eff38f1faa5e69f0b170f/third_party/rust/winapi/src/um/wingdi.rs#1583-1700 There are a few caveats though: * The pref must be a String pref, not an Integer pref. * The pref must contain the printer name as saved by Firefox. To clarify the second point, I have to set `print.printer_Brother_MFC-L8690CDW_series_Printer.print_paper_id` for my printer (setting `print.print_paper_id` won't be enough).
Bug 1672398 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Rog from comment #3) > What should we put in paper_id? The `print_paper_id` should be the correct one, and 9 should still be the value that you need for A4. The paper size names and their corresponding numeric values can be found here: https://searchfox.org/mozilla-central/rev/25d5a4443a7e13cfa58eff38f1faa5e69f0b170f/third_party/rust/winapi/src/um/wingdi.rs#1583-1700 There are a few caveats though: * The pref must be a String pref, not an Integer pref. * The pref must contain the printer name as saved by Firefox. To clarify the second point, I have to set `print.printer_Brother_MFC-L8690CDW_series_Printer.print_paper_id` for my printer (setting `print.print_paper_id` won't be enough).
(In reply to Rog from comment #3) > What should we put in paper_id? The `print_paper_id` should be the correct one, and 9 should still be the value that you need for A4. The paper size names and their corresponding numeric values can be found here: https://searchfox.org/mozilla-central/rev/25d5a4443a7e13cfa58eff38f1faa5e69f0b170f/third_party/rust/winapi/src/um/wingdi.rs#1583-1700 There are a few caveats though: * The pref must be a String pref, not an Integer pref. * The pref name must contain the printer name as saved by Firefox. To clarify the second point, I have to set `print.printer_Brother_MFC-L8690CDW_series_Printer.print_paper_id` for my printer (setting `print.print_paper_id` won't be enough).
(In reply to Rog from comment #3) > What should we put in paper_id? The `print_paper_id` should be the correct one, and 9 should still be the value that you need for A4. The paper size names and their corresponding numeric ID can be found here: https://searchfox.org/mozilla-central/rev/25d5a4443a7e13cfa58eff38f1faa5e69f0b170f/third_party/rust/winapi/src/um/wingdi.rs#1583-1700 There are a few caveats though: * The pref must be a String pref, not an Integer pref. * The pref name must contain the printer name as saved by Firefox. To clarify the second point, I have to set `print.printer_Brother_MFC-L8690CDW_series_Printer.print_paper_id` for my printer (setting `print.print_paper_id` won't be enough).