HtmlSaveOptions.export_page_setup property. Specifies whether page setup is exported to HTML, MHTML or EPUB... save ( ARTIFACTS_DIR + "HtmlSaveOptions.export_page_setup...html" , options ) with open ( ARTIFACTS_DIR + "HtmlSaveOptions.export_page_setup...