python selenium chrome print without borders

Viewed 304

I'm trying to use selenium python binding to print from Chrome.

Thanks to How do i disable headers and footers Selenium Printing I found out that setting "isHeaderFooterEnabled" to False disables headers/footers.

But how can I disable margins for printing in selenium? Default is with margins on.

Thanks!

1 Answers

Use 'marginsType': 1. I found this in ~/.config/chromium/Default/Preferences.

Related