4 ms·
Just found this gist: https://gist.github.com/luoyetx/a44eea84272123f608dcf737588cdfa7 https://gist.github.com/luoyetx/a44eea84272123f608dcf737588c... Avoids t
by yorwba 11y ago
Just found this gist: https://gist.github.com/luoyetx/a44eea84272123f608dcf737588cdfa7 https://gist.github.com/luoyetx/a44eea84272123f608dcf737588c...
Avoids the awkward file system structure by using pdfkit.from_url, but creates one .pdf for each chapter. I tried using a list of urls, but pdfkit failed because my version of wkhtmltopdf did not accept multiple input files.
Edit: pdfkit.from_file also fails on my system when passing multiple files. If that works for you, multiple urls are probably fine, too.