Site iconJava PDF Blog

How to convert fillable PDF forms to HTML forms in PHP

fillable pdf forms to html forms using PHP

How to convert fillable PDF forms to HTML forms using PHP

These steps demonstrate how to convert PDF forms to HTML using the FormVu cloud API. You can utilize:

Using composer you will install the idrsolutions-php-client package with the following command:

Here is a basic code example to convert PDF forms to HTML. You can find configuration options and advanced features below.

Return result to a callback url

The FormVu Microservice supports a callback URL to notify you of the conversion status upon completion. This eliminates the need to poll the service to check if the conversion is done.
You can include the callback URL in the parameters array as demonstrated below:

Configuration Options

The FormVu API accepts a stringified JSON object with key-value pair configuration options to customize your conversion. Add these settings to the parameters array. You can find a complete list of configuration options for converting PDF forms to HTML here.

Upload by URL

In addition to uploading a local file, you can provide a URL for the FormVu Microservice to download and convert. To do this, replace the input and file values in the parameters array with the following:

Using Authentication

If your FormVu Microservice deployment requires a username and password for converting PDF forms to HTML, you must include these credentials with each conversion. Add the variables username and password to the parameters array as shown below:


If this is the case you will also need to provide the authentication values to the downloadOutput method as well.

You can read our article to understand the PDF format and if you’re looking for meanings of common PDF terms, we recommend you check out our PDF glossary.