This page serves as a guide for using the PDFCrowd API to convert PDF to HTML. 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.
To access the API, you will need to use your PDFCrowd username and API key. For initial testing, you may use the following demo credentials without registering:
demo
ce544b6ea52a5621fb9d55f8b542d14d
To obtain your personal API credentials, start a free trial or purchase the API license.
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-pages | Total number of pages in the output document. |
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 PDF to HTML POST Reference for a description of all options.