REST API

/pdf — POST

Build a pdf document from a Restructured Text File

Required argument: file as the blog Restructured source file

Example :

echo 'some content' > document.rst
curl -o document.pdf -F file=@document.rst -X POST http://services.pythonian.fr/pdf
open document.pdf

/bundle — POST

Return a zip archive containing all resources to use with rst2pdf (not bundled)

Optional argument: file as the blob Restructured source file

Example :

echo 'some content' > document.rst
curl -o bundle.zip -F file=@document.rst -X POST http://services.pythonian.fr/bundle
unzip bundle.zip
cd bundle
pip install rst2pdf
make clean build
open document.pdf