import pdfkit
import sys
options = {
    'page-size': 'A4',
    'margin-top': '0.75in',
    'margin-right': '0.75in',
    'margin-bottom': '0.75in',
    'margin-left': '0.75in',
}


pdfkit.from_file('test.html', 'test.pdf')