#author("2021-11-28T08:21:25+00:00","default:hotate","hotate") #author("2023-07-26T21:27:42+00:00","default:hotate","hotate") #contents &tag(PDF); * 情報 [#ke3d47d3] - [[wkhtmltopdf>http://wkhtmltopdf.org/]] wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine. -- [[ドキュメントの PDF をテキストから作りたいけど /// NER Short>https://let.blog.jp/article/27339363]] (2021/9/5) HTML を使う場合は デフォルトエンジンは wkhtmltopdf 懐かしい というかまだ生きてたんだ 公式ページを見てみると QtWebkit の開発が停止したり復活したり Chrome の Blink 化や PhantomJS の終了だったり 色々あったみたい -- [[status - wkhtmltopdf>https://wkhtmltopdf.org/status.html]] If you’re using it for report generation (i.e. with HTML you control), also consider using WeasyPrint or the commercial tool Prince --- 関連:[[WeasyPrint]] - [[wkhtmltopdfの次どうするか問題 - おもしろwebサービス開発日記>https://blog.willnet.in/entry/2023/02/10/233053]] (2023/03/10) そんなwkhtmltopdfですが、GitHubリポジトリ を見るとわかるようにアーカイブされてしまっています。公式ページ に経緯が書いてありますが、要約するとwkhtmltopdfが依存しているQtWebkitのメンテが止まったのが原因でメンテが続けられなくなったということのようです。 * [[macOS]] [#i3f4db59] ** [[Homebrew]] [#c13a5386] - [[wkhtmltopdf — Homebrew Formulae>https://formulae.brew.sh/cask/wkhtmltopdf]] brew install --cask wkhtmltopdf -- コメント:上記の方法でインストール出来た。(2021/11/24 BigSur) - %%[[How to install wkhtmltopdf on OSX (August 2014)?>http://thelazylog.com/how-to-install-wkhtmltopdf-on-osx-august-2014-903b6fe2-36ca-4093-a2c3-809f6d4f5a54/]]%% brew install homebrew/boneyard/wkhtmltopdf * 使い方 [#iab79c03] - [[HTMLをPDFに上手いこと変換してくれるwkhtmltopdfを日本語で使う>http://tech.basicinc.jp/Linux/2014/05/04/html_to_pdf_convert/]] $ wkhtmltopdf http://google.com google.pdf