Convert every page of your PDF into high-quality PNG or JPG images. Downloaded as a ZIP.
curl -X POST https://www.bastiantechnologies.com/api/pdf/convert-to-image \ -H "X-API-Key: your_api_key" \ -F "pdf=@document.pdf" \ -F "format=png" \ -F "quality=150" \ -F "pages=all" # Poll job status curl https://www.bastiantechnologies.com/api/pdf/job/{jobId} # Download ZIP when completed curl https://www.bastiantechnologies.com/api/pdf/download/{jobId} -o images.zip
const fd = new FormData(); fd.append('pdf', file); fd.append('format', 'png'); fd.append('quality', '150'); fd.append('pages', 'all'); const { jobId } = await fetch('/api/pdf/convert-to-image', { method: 'POST', headers: { 'X-API-Key': 'your_api_key' }, body: fd }).then(r => r.json());
import requests, time r = requests.post("https://www.bastiantechnologies.com/api/pdf/convert-to-image", headers={"X-API-Key": "your_api_key"}, files={"pdf": open("doc.pdf", "rb")}, data={"format": "png", "quality": "150", "pages": "all"})
URL: https://www.bastiantechnologies.com/api/pdf/convert-to-image Body: pdf (binary), format (png|jpg), quality (72|150|300), pages (all|1)