PDF to HTML in Command Line

Overview

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

Installation

Install the application from PyPI
pip install pdfcrowd

We also offer other installation options.

Authentication

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.

You can try out the API without registration using the following demo credentials:
  • Username: demo
  • API key: ce544b6ea52a5621fb9d55f8b542d14d

Or you can start a free trial or purchase the API license to get your personal API credentials.

Examples

pdf2html -user-name "demo" -api-key "ce544b6ea52a5621fb9d55f8b542d14d" \
    "/path/to/logo.pdf" > "logo.html"
pdf2html -user-name "demo" -api-key "ce544b6ea52a5621fb9d55f8b542d14d" \
    "https://pdfcrowd.com/static/pdf/apisamples/invoice.pdf" > "invoice.html"

Troubleshooting

  • 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.