Quick Start for Python
Python supports tools like wkhtmltopdf and Puppeteer, but they often require complex configurations. Our solution simplifies HTML to PDF conversion, eliminating the need for complicated setups. Let’s get started with Python here.
1️⃣ Get Your API Key
- Access your API Key in the Admin Dashboard or find it in the welcome email sent after registration.
- Keep your key secure, as it is required to authenticate your requests with the PDFBolt API.
2️⃣ 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)
3️⃣ What’s next?
Discover the full potential of PDFBolt by exploring its powerful features and customization options. Start with the API Endpoints and dive into the Conversion Parameters to tailor your integration to your needs.