Image to PDF / HTTP API Examples
This page contains various examples of using the Image to PDF API via HTTP API. The examples are complete and fully functional. Read more about how to convert Image to PDF via HTTP API.
Basic examples
Basic examples
PNG file to PDF file
curl -f -u "demo:demo" \ -o "logo.pdf" \ -F "input_format=image" \ -F "output_format=pdf" \ -F "file=@/path/to/logo.png" \ https://api.pdfcrowd.com/convert/24.04/
PNG url to PDF file
curl -f -u "demo:demo" \ -o "logo.pdf" \ -F "input_format=image" \ -F "output_format=pdf" \ -F "url=https://pdfcrowd.com/static/images/logo.png" \ https://api.pdfcrowd.com/convert/24.04/