简体   繁体   中英

Is there a way to access google chrome browser print properties

I am trying to customize the following to 85% and to print 1-sided to be de default for a bunch of printing jobs for my client. Is there a way that this can be done via javascript? I tried CSS but did not work out for me. If anyone has been able to do so, please let me know if this can be accomplished.

Thank you in advance!

在此处输入图像描述

Using javascript you cannot, as different browsers implement it different, you can only call window.print() but you can use tools like CyPress or Puppeteer to automate it, puppe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM