> From: Guillaume Bouchard <guillaume.bouchard@...>
> Sent: Monday, April 13, 2009 3:31:18 AM
> On Sun, Apr 12, 2009 at 11:14:19PM -0300, Alessandro Antonello wrote:
> > My question is (finally): there is another way to produce PDF files from
> > files that does not use Latex? There is a way to create a FO file
> > that I could use to create the PDF files from my RST sources directly?
> You can use rst2pdf to create pdf directly from rst files
> Also, as RST is able to write xml, you can *easily* write an XSLT
> stylesheet or any kind of convertor you'll feed with the rst_xml and
> output the fo:xml.
If you decide to go in this direction, you may want to consider
using XSLT to transform reST XML into docbook, then use docbook2odf
to create an ODF file, then generate PDF from that. You can find
out about docboo2odf here:
Alternative, you could use Python and ElementTree/Lxml and walk the
reST XML document tree, generating docbook, then use docbook2odf.
I've done a bit of experimenting in this direction, and for limited
special tasks, to seems to be reasonably do-able.
On my Ubuntu Debian GNU/Linux machine, docbook2odf can be installed
with a package manager, for example, apt-get.