ニュース

まず、単にHTMLをPDFに変換するだけのライブラリであれば、いくつか候補がある。 その一つが「xhtml2pdf」というPythonパッケージだ。
それでは、ここからPythonのプログラムを作ってみよう。 ただし、Pythonからwkhtmltopdfを実行するために「pdfkit」というモジュールを使う。
PyScript lets you run Python scripts right in the browser, side by side with JavaScript, with two-way interaction between your code and the web page.