html - Can I set the window.print settings with javascript? -
i working on creating printable document html page output large. don't want have restyle page work printing (ie. print media queries again), wondering if there way can change window.print
(or window print dialog) settings.
i have figured out setting scale
equal 80%
generates pdf; however, don't want people have remember this. there way in chrome?
i have tried adjusting browser page zoom
leads same behaviour (squished content) covers portion of page. technique based on question: force page zoom @ 100% js.
also, have tried adjusting body
scale transform: scale(0.8);
, no avail. resulted in large amount of whitespace around elements in pdf couldn't remove.
Comments
Post a Comment