FireFox打印选项 [英] FireFox print options
问题描述
我发现这个ff扩展( https://addons.mozilla.org/fr/firefox/addon/8966 ),但他不能设置页面格式(A4或A5)
谢谢
代码为扩展,它看起来像支持设置 paperHeight
和 paperWidth
,所以你确实可以设置页面格式到A4或A5。
然而,您的目标是控制您的个人浏览器的打印机设置?或者你是否希望为你的访客定制选项?
如果您的目标是在访问您的网站的用户尝试打印时跳过打印对话框,那么在任何主流浏览器中都无法进行打印。浏览器完全控制用户的打印偏好,网站不能通过JavaScript或任何其他方式改变。
如果您只想要一种方法来控制您自己的个人浏览器,那扩展看起来像是正确的路。
how i can customise firefox print options with javascript, without display the print dialog.
i found this ff extention ( https://addons.mozilla.org/fr/firefox/addon/8966 ) , but he cant set the page format (A4 or A5)
thanks
Looking at the source code for that extension, it looks like it does support setting paperHeight
and paperWidth
, so you could indeed set the page format to A4 or A5.
However, is your goal to control the printer settings for your own personal browser? Or are you hoping to customize options for your visitors?
If your goal is to bypass the print dialog when someone visiting your site tries to print, that's not possible in any major browser. Browsers leave control over print preferences entirely with the user, and websites cannot change that through JavaScript or any other means.
If you just want a way to control your own personal browser, that extension does look like the right way to go.
这篇关于FireFox打印选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!