text typesetter with fpdf2
- プレーンテキストをPDF化します (a2pdfぽいやつ)
- 特殊文字は「改行」「改ページ」だけ処理が行えるようにします
- マークアップによる強調などの装飾は扱いません
$ python -m pip install git+https://github.com/shidocchi/text2pdf.git
usage: python -m text2pdf ...
text typesetter
options:
-h, --help show this help message and exit
--raw suppress stdin encoding
--out OUT output filename
--page {a3,b4,a4,b5,a5,hagaki}
page size
--landscape landscape
--margin MARGIN margin mm
--size SIZE font pt
--height HEIGHT line height pt
--font {cons,yu,noto,udev,ipa}
font
--do {print,edit,open}
operation
--sample sample text
$ cat sample.txt | python -m text2pdf