Skip to content

Instantly share code, notes, and snippets.

@0x4ka5h
Last active December 9, 2019 09:57
Show Gist options
  • Select an option

  • Save 0x4ka5h/080cb3155ded0bf9f1fc5d93144c4b96 to your computer and use it in GitHub Desktop.

Select an option

Save 0x4ka5h/080cb3155ded0bf9f1fc5d93144c4b96 to your computer and use it in GitHub Desktop.
convert html to pdf
import pdfkit
path=input("Enter path of the html file: ")
pdfkit.from_file(path, 'out.pdf')
@0x4ka5h
Copy link
Author

0x4ka5h commented Dec 9, 2019

Screenshot from 2019-12-09 10-50-17
and I convert html in to pdf using pdfkit module in python version 3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment