Convert html to pdf

Do not use wkhtmltopdf with any untrusted HTML – be sure to sanitize any user-supplied HTML/JS, otherwise it can lead to complete takeover of the server it is running on!

import pdfkit

options = {
    'page-size': 'Letter',
    'orientation': 'Landscape',
    'viewport-size': '1280x1024'
}

pdfkit.from_url('https://bangtech.com/','bangtech.pdf', options)