- Getting Started
- Installation
- Key Concepts
- Integrations
- Account & Billing
- Security & Privacy
- PDF Generation
- Reference
- Tutorials
- Troubleshooting
- Excel Generation
- Reference
- Troubleshooting
Referrer-Based Documents
DocRaptor makes it easy to convert any webpage you have control over into a document using a simple anchor tag. On your account management page, you can add domains you would like to link to DocRaptor, and requests to DocRaptor to create docs that have that domain as part of their HTTP_REFERER HTTP header will be generated using your account without the need for an API key. Click "domains” after logging in to manage your domains!
URL
Once you've set up your domains, you can make a GET request against:
https://api.docraptor.com/docs/from_site
JavaScript & PDF Options
You can enable JavaScript or any of our PDF options by using the same parameters as our Document API, but in a query string format.
Example Code
As an example, you can download a PDF of this page using the below code:
<a href='https://api.docraptor.com/docs/from_site/?name=example&type=pdf'>
Download a PDF
</a>
With JavaScript enabled and media set to screen
:
<a href='https://api.docraptor.com/docs/from_site/?javascript=true&prince_option[media]=screen&name=example&type=pdf'>
Download a PDF
</a>