PDF to HTML HTTP POST Examples

This page contains various examples of using the PDF to HTML API with HTTP POST. The examples are complete and fully functional. Read more about how to convert PDF to HTML with HTTP POST.

Basic examples

Basic examples

Convert a local PDF file to a HTML file

curl -f -u "demo:ce544b6ea52a5621fb9d55f8b542d14d" \
    -o "logo.html" \
    -F "input_format=pdf" \
    -F "output_format=html" \
    -F "file=@/path/to/logo.pdf" \
    https://api.pdfcrowd.com/convert/20.10/

Convert url with PDF file to a HTML file

curl -f -u "demo:ce544b6ea52a5621fb9d55f8b542d14d" \
    -o "invoice.html" \
    -F "input_format=pdf" \
    -F "output_format=html" \
    -F "url=https://pdfcrowd.com/static/pdf/apisamples/invoice.pdf" \
    https://api.pdfcrowd.com/convert/20.10/

Advanced examples

Template rendering Examples