#author("2021-11-28T09:49:27+00:00","default:hotate","hotate")
#author("2021-11-28T09:49:40+00:00","default:hotate","hotate")
#contents
&tag(PDF);

* 情報 [#lc3e8b70]
** [[リファレンス]] [#wec33693]
- [[WeasyPrint — WeasyPrint 53.4 documentation>https://doc.courtbouillon.org/weasyprint/stable/]]
 WeasyPrint is a smart solution helping web developers to create PDF documents. It turns simple HTML pages into gorgeous statistical reports, invoices, tickets…

** 事例 [#ce30775b]
- [[WeasyPrint で PDF を出力する - Qiita>https://qiita.com/QUANON/items/727433f6c39a51fd4052]] (2017/9/11)
 PDF を出力するためのライブラリとしては、個人的には wkhtmltopdf が馴染み深いです。しかし、今回たまたま WeasyPrint というライブラリを見つけたので試してみました。

** インストール [#ef4554d2]
*** [[macOS]] [#k3233222]
- [[First Steps — WeasyPrint 53.4 documentation>https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#macos]]
 The easiest way to install WeasyPrint on macOS is to use Homebrew.
-- コメント:下記のコマンドでインストール後、[[HTML]]を[[PDF]]へ変換出来た。(2021/11/28 BigSur)
-- コメント:下記のコマンドでインストール後、HTMLを[[PDF]]へ変換出来た。(2021/11/28 BigSur)
 $ pip3 install weasyprint

* 関連 [#gef8f75e]
#related

#taglist(tag=PDF)

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS