L
L
leirons2021-05-01 14:37:03
Python
leirons, 2021-05-01 14:37:03

How to print footer when generating pdf selenium?

I did not find the necessary information on the Internet, I take pdf pages, along with it I need to take it and the footer says there is a default for this, but how? Code below, tried
"isHeaderFooterEnabled": True,
"footerTemplate":True,

appState = {
            "recentDestinations": [
                {
                    "id": "Save as PDF",
                    "origin": "local",
                    "account": ""
                }
            ],
            "selectedDestinationId": "Save as PDF",
            "version": 2
        }

        profile = {'printing.print_preview_sticky_settings.appState': json.dumps(appState),
                   'savefile.default_directory': self.pdf_path,  # /home/Mirex/PycharmProjects/parser/path_png/pang.pdf
                   "isHeaderFooterEnabled": True,
                   "footerTemplate":True,
                   }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question