PDF to Text Command line Examples

These examples demonstrate common PDF to Text API workflows in Command line.


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"