Created
September 16, 2018 20:41
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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