This page serves as a guide for using the PDFCrowd API to convert between images formats. You can call the API by sending an HTTP request to the API server address with options passed as POST data.
Below are examples to help you quickly get started with the API. Explore our additional examples for more insights.
The authentication method is HTTP Basic authentication.
The server address:
https://api.pdfcrowd.com/convert/24.04/
Content-Type
to
multipart/form-data
.
application/x-www-form-urlencoded
.
errfmt
: Specifies the error response format.
json
– Returns errors in JSON format.txt
– Returns plain-text error messages.Example:
https://api.pdfcrowd.com/convert/24.04/?errfmt=json
Show older API versions.
The HTTP response contains the following headers.
Name | Description |
---|---|
x-pdfcrowd-debug-log | URL pointing to the debug log for this request. |
x-pdfcrowd-remaining-credits | Number of conversion credits remaining in your account. |
x-pdfcrowd-consumed-credits | Number of credits consumed for this conversion. |
x-pdfcrowd-job-id | Unique identifier assigned to this conversion job. |
x-pdfcrowd-output-size | Size of the output data in bytes. |
x-pdfcrowd-reason-code | The reason code of the error, or 0. |
Refer to the Image to Image POST Reference for a description of all options.