PDFを画像に変換する
macのCLIでPDFを画像に変換したい
いろいろある
sipsコマンド
Ghostscript
Poppler
ImageMagick
いったんこれで行ける
$ nix-shell -p imagemagick ghostscript
$ convert -density 1000 -quality 95 hoge.pdf a-%03d.png
λ convert
コマンドオプションも全く理解していない
-density 1000にすると、生成されるまでの時間がめちゃくちゃ遅くなる
600でギリ許容できるかなぐらい
これでも5minぐらいかかる
ただ、画質が微妙なのであとで↓見るかmrsekut.icon
/nishio/書籍スキャンPDFをScrapboxに置く
/villagepump/PDFを画像に変換
/nishio/PDFからPNGへの変換
Ghostscriptは画質がひどいらしい
/takker/PDFを画像に変換
rs
styrowolf/pdf2image
https://github.com/styrowolf/pdf2image
https://docs.rs/pdf2image/latest/pdf2image/
https://crates.io/crates/pdf2image
poppler-rs
https://github.com/DMSrs/poppler-rs
Popplerのwrapperか
pdfium-render
Pdfiumのwrapper
https://github.com/ajrcarey/pdfium-render
https://docs.rs/pdfium-render/latest/pdfium_render/
https://crates.io/crates/pdfium-render/0.8.27
mupdf