0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AlmaLinux wkhtmltox インストール

Posted at

wkhtmltoxとは?

wkhtmltox は、HTMLをPDF、画像、またはその他の形式に変換するためのツールで、C++で書かれたコマンドラインプログラムです。これは、QtとWebKitのオープンソースバージョンであるQt WebKitを使用して、HTMLをレンダリングしてPDF、画像、SVGなどのファイル形式に変換します。

Pythonからwkhtmltoxを利用するためには、Pythonのラッパーライブラリである pdfkit や weasyprint が使用されることがあります。これらのライブラリは、PythonからHTMLをPDFに変換するためのシンプルな方法を提供します。

python-highcharts などからHTMLやPDFを生成する時に必要です。

インストール

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm
du -sh wkhtmltox-0.12.6-1.centos8.x86_64.rpm
 dnf install ./wkhtmltox-0.12.6-1.centos8.x86_64.rpm
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?