Linuxで0.92を使用しており、 Dimitri Christodoulouのブログに示されているように、ディレクティブrst2pdf
内にhtmlを埋め込もうとしています。Robert Alsinaは、この機能を0.90に統合したと述べました。list-table
rst2pdf
セルごとに複数のテキスト行を含む請求書を作成しようとしています。改行の場所を制御する最も簡単な方法は、<br>
タグを使用することです。これは私のtest.rst
ファイルでした:
Invoice for Services Rendered
=============================
.. list-table::
:widths: 50 50
:header-rows: 0
* - .. raw:: html
<p>My Name Here<br>My address here<br>City, State, Zip<br>Ph: 214-555-1212<br></p>
- **INVOICE**
* - This is a test
- .. raw:: html
<p>Invoice #20120622001<br>Date: 25 June 2012<br></p>
rst2pdf -o test.pdf test.rst
これは、;を使用しても問題なくPDFにコンパイルされます。ただし、埋め込まれたHTMLが必要な場所にテキストが表示されません。
使ってます:
- 仮想環境でのPython2.6.6
- docutils 0.9.1
- rst2pdf 0.92
- xhtml2pdf 0.0.4
- Debian Squeeze(Debian Linux 6.0)
rst2pdfを取得して、上記のHTMLをlist-table
ディレクティブに埋め込むにはどうすればよいですか?
編集