Image to PDF HTTP API Examples

These examples demonstrate common Image to PDF API workflows via HTTP API.


Basic examples

PNG file to PDF file

curl -f -s -S \
  -u 'demo:demo' \
  -o logo.pdf \
  -F file=@/path/to/logo.png \
  -F input_format=image \
  https://api.pdfcrowd.com/convert/24.04/

PNG url to PDF file

curl -f -s -S \
  -u 'demo:demo' \
  -o logo.pdf \
  -F url=https://pdfcrowd.com/static/images/logo.png \
  -F input_format=image \
  https://api.pdfcrowd.com/convert/24.04/