PDF to Text / Command Line Examples
This page contains various examples of using the PDF to Text API in Command Line. The examples are complete and fully functional. Read more about how to convert PDF to Text in Command Line.
Basic examples
Basic examples
PDF file to text file
pdf2text -user-name "demo" -api-key "demo" \ "/path/to/invoice.pdf" > "invoice.txt"
PDF url to text file
pdf2text -user-name "demo" -api-key "demo" \ "https://pdfcrowd.com/static/pdf/apisamples/invoice.pdf" > "invoice.txt"