This page contains various examples of using the PDF to Text API with HTTP POST. The examples are complete and fully functional. Read more about how to convert PDF to Text with HTTP POST.
curl -f -u "demo:ce544b6ea52a5621fb9d55f8b542d14d" \ -o "invoice.txt" \ -F "input_format=pdf" \ -F "output_format=txt" \ -F "file=@/path/to/invoice.pdf" \ https://api.pdfcrowd.com/convert/20.10/
curl -f -u "demo:ce544b6ea52a5621fb9d55f8b542d14d" \ -o "invoice.txt" \ -F "input_format=pdf" \ -F "output_format=txt" \ -F "url=https://pdfcrowd.com/static/pdf/apisamples/invoice.pdf" \ https://api.pdfcrowd.com/convert/20.10/