# (A) LOAD PDFKIT import pdfkit # (B) HTML TO PDF pdfkit.from_string( "
This is an HTML string
", "demo1.pdf" ) pdfkit.from_file( "x-dummy.html", "demo2.pdf", options = {"enable-local-file-access": ""} ) pdfkit.from_url( "https://en.wikipedia.org/wiki/Koto_(instrument)", "demo3.pdf" )