Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 652 Bytes

README.markdown

File metadata and controls

17 lines (13 loc) · 652 Bytes

PHP-DocRaptor

PHP-DocRaptor is a simple consumer class for DocRaptor.com You will need a DocRaptor account before you can use the class, as it requires a valid API key.

###Usage $docraptor = new DocRaptor(YOUR_API_KEY); $docraptor->setDocumentContent('

Hello!

'); $docraptor->setDocumentType('pdf'); $docraptor->setTest(true); $docraptor->setName('output.pdf'); $file = $docraptor->fetchDocument();

Optionally, the fetchDocument() method takes a filename as an argument. If you provide a filename, the class will attempt to write the returned value to the file you provided.