はじめに 業務上HTMLの画面をPDFにしてダウンロードしたい場合があります。 利用者は手動でツール、コマンドなどを使ってPDFに変換する場面があるし、 プログラムでPDF作成してダウンロードする場面もあります。 やり方を簡単にまとめてみます。 1. 利用者手動でPDF生成 1.1 ブラウザの機能を使ってPDFとして保存 Chromeの場合は、印刷の画面の送信先を「PDFに保存」選択し、保存ボタンを押すとPDFファイルとして作成できます。 1.2 Chromeの拡張機能の利用 いくつかありますが、例えば:Print Friendly & PDF https://chrome.google.com/webstore/detail/print-friendly-pdf/ohlencieiipommannpdfcmfdpjjmeolj?hl=ja 1.3 コマンドでPDF生成 1.3.1 wkh