"""
Export to Portable Document Format (PDF)
EXAMPLES::
>>> from quill.exporter.pdf import Pdf
>>> Pdf('
"""
import cairo
from quill.exporter.cairo_surface import CairoSurface
[docs]class Pdf(CairoSurface):
"""
Exporter to PDF
:param fileobj: a filename or a file-like object
"""
def __init__(self, fileobj):
"""
The Python constructor
"""
surface = cairo.PDFSurface(fileobj, 1, 1)
super(Pdf, self).__init__(surface)