I\'m tried the answer code from Set Selenium ChromeDriver UserPreferences to Save as PDF.
driver.execute_script(\'window.print();\')
This is from