summaryrefslogtreecommitdiff
path: root/sandbox/dreamcatcher/tools/pdf.py
blob: de89e44d5a865a558091dd0d86b19d098c3d5dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

"""
:Author: Engelbert Gruber
:Contact: grubert@users.sourceforge.net
:Revision: $Revision$
:Date: $Date$
:Copyright: This module has been placed in the public domain.

A minimal front-end to the Docutils Publisher, producing PDF via ReportLabs.
"""

from docutils.core import publish_cmdline
try:
    from docutils.writers.rlpdf import Writer
except ImportError:
    from rlpdf import Writer


usage = 'usage:\n  %prog [options] [source [destination]]'

publish_cmdline(writer=Writer(), usage=usage)