Skip to content

Instantly share code, notes, and snippets.

@marknagelberg
Created September 16, 2018 20:41
Show Gist options
  • Save marknagelberg/a72f5d5ada749c64980139466619b312 to your computer and use it in GitHub Desktop.
Save marknagelberg/a72f5d5ada749c64980139466619b312 to your computer and use it in GitHub Desktop.
Code to Convert the 10 HTML files to PDF (as part of PDF in Python Blog Post)
import pdfkit
for i in range(1,11):
pdfkit.from_file(str(i) + '.html', str(i) + '.pdf')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment