A python API for Doc Raptor (a HTML to PDF/XLS webapp).

Example

from docraptor import DocRaptor

docraptor = DocRaptor()
with open("test.pdf", "wb") as f:
    f.write(docraptor.create({
        'document_content': '<p>python-docraptor Test</p>',
        'test': True
    }).content)

Other Resources

Acknowledgements

python-docraptor uses the excellent Requests HTTP library.