--enable-local-file-access
options = { "enable-local-file-access": None } pdfkit.from_file(html_file_name, pdf_file_name, options=options)