Convert PDF files into editable Word, Excel, or plain text documents.
curl -X POST https://www.bastiantechnologies.com/api/pdf/convert-to-document \ -H "X-API-Key: your_api_key" \ -F "pdf=@document.pdf" \ -F "format=docx" # format: docx | xlsx | txt
const fd = new FormData(); fd.append('pdf', file); fd.append('format', 'docx'); const { jobId } = await fetch('/api/pdf/convert-to-document', { method: 'POST', headers: { 'X-API-Key': 'your_api_key' }, body: fd }).then(r => r.json());
import requests requests.post("https://www.bastiantechnologies.com/api/pdf/convert-to-document", headers={"X-API-Key": "your_api_key"}, files={"pdf": open("doc.pdf", "rb")}, data={"format": "docx"})
URL: https://www.bastiantechnologies.com/api/pdf/convert-to-document Body: pdf (binary), format (docx|xlsx|txt)