Image to PDF in Command Line

This page describes how to convert images to PDF from the command line using the Pdfcrowd API.



Install the application from PyPI
pip install pdfcrowd

We also offer other installation options.


Authentication is needed in order to use the Pdfcrowd API. The credentials used for accessing the API are your Pdfcrowd username and the API key.

To get your personal API credentials, you can start a free API trial or buy the API license.


image2pdf -user-name "your_username" -api-key "your_apikey" \
    "/path/to/logo.png" > "logo.pdf"
image2pdf -user-name "your_username" -api-key "your_apikey" \
    "" > "logo.pdf"


  • List of API Status Codes if an error code is returned.
  • You can use -debug-log to get detailed info about the conversion, such as conversion errors, time, console output.
  • Take a look at the FAQ section.
  • Are you missing a feature? Contact us, we look forward to your suggestions.

User Manual

Refer for details to the User Manual.