options = {
"orientation": "portrait",
"page-size": "A4",
"margin-top": "1.0cm",
"margin-right": "1cm",
"margin-bottom": "1.5cm",
"margin-left": "1cm",
"encoding": "UTF-8",
'footer-center': "Страница [page] из [toPage]",
'footer-font-size': 10,
}
out="... html page ..."
pdf = pdfkit.from_string(out, options=options, configuration=wkhtml_path)