Quick Start for Python
Python offers options for wkhtmltopdf and Puppeteer, though they can require additional configuration. Our solution simplifies HTML to PDF conversion, removing the need for complex setups. Start here with Python.
Get Your API Key
- Access your API Key in the Admin Dashboard or find it in the welcome email sent after registration.
- You’ll need this key to authenticate your requests with the PDFBolt API.
Make Your First Request
Here’s a simple example to help you send your first request to the PDFBolt API and create your initial PDF with ease.
import requests
url = 'https://api.pdfbolt.com/v1/direct'
headers = {
'Content-Type': 'application/json',
'API_KEY': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
}
data = {
'url': 'https://example.com'
}
response = requests.post(url, headers=headers, json=data)
with open('example.pdf', 'wb') as f:
f.write(response.content)
What’s next?
Continue your journey with PDFBolt by exploring its extensive features and benefits. Start by checking the available API Endpoints and reviewing the various Conversion Parameters that can be used to customize your integration. This will help you leverage PDFBolt’s full capabilities and ensure that it aligns with your specific requirements.