LoginSignup
3
6

More than 1 year has passed since last update.

calibreコマンドライン操作のメモ

Last updated at Posted at 2020-11-04

追記

2021年7月22日
-作業手順のレイアウト調整

参照

2019年03月19日に更新 kindle書籍のpdf化
https://qiita.com/keitasumiya/items/c9d0f81fd7fb96e505b3
2016年12月10日に更新 Kindle本をGoogle Booksに移動させたときのメモ
https://qiita.com/mgoldchild/items/165f63bc2e006c81bf58
calibre-ebook.com - Command Line Interface » ebook-convert
https://manual.calibre-ebook.com/generated/en/ebook-convert.html

作業手順

(Mac作業ディレクトリ)●/Applications/calibre.app/Contents/MacOS
./ebook-convert [変換したいファイルのあるディレクトリ]/[変換したいAZWファイル].azw3 [出力先ディレクトリ]/[出力ファイル名].pdf \
--custom-size 200x283 \
--unit millimeter \
--preserve-cover-aspect-ratio \
--pdf-serif-family 'Times New Roman' \
--pdf-sans-family 'Courier New' --pdf-mono-family 'Courier New' \
--pdf-standard-font 'serif'  \
--pdf-default-font-size 18 \
--pdf-mono-font-size 14 \
--pdf-page-margin-bottom '20.0' \
--pdf-page-margin-left '20.0' \
--pdf-page-margin-right '20.0' \
--pdf-page-margin-top '20.0'

cssスタイルの追加についてはまだよくわかっていない。
--custom-size 200x283
ここはカバー画像解像度1005x1420から求めたアスペクト比a=1.41を使用し 200x200*aで求めている
'kindle書籍のpdf化'の設定を公式ドキュメントと照らし合わせながら貼り付けただけなので本当にただのメモ

serif,sans,mono,のフォント設定に至っては全く調べてない
PDFで表示が固定化できると記憶の整理がしやすい。いいね

3
6
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
3
6