pdfkit- Warning: Blocked access to file 解决 # 使用pdfkit时可以配置上下面options中的信息 # <img src='xxx.jpg> 标签中的本地图片即可被正确导出 options = { "enable-local-file-access": None } pdfkit.from_file(html_file_name, pdf_file_name, options=options)