Image to PDF / Command Line Examples
This page contains various examples of using the Image to PDF API in Command Line. The examples are complete and fully functional. Read more about how to convert Image to PDF in Command Line.
Basic examples
Basic examples
PNG file to PDF file
image2pdf -user-name "demo" -api-key "demo" \ "/path/to/logo.png" > "logo.pdf"
PNG url to PDF file
image2pdf -user-name "demo" -api-key "demo" \ "https://pdfcrowd.com/static/images/logo.png" > "logo.pdf"