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:
- The IDR Solutions trial and cloud subscription service
- Your own self-hosted FormVu microservice
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.
What is FormVu?
FormVu is a commercial SDK for converting PDF Form files into standalone HTML with interactive form components.
Why use FormVu?
FormVu allows you to integrate PDF forms into your web application effortlessly while retaining all their interaction and functionality.
What licenses are available?
We have 3 licenses available:
Cloud for form conversion using the shared IDRsolutions cloud server, Self hosted server option for your own cloud or on-premise servers, and Enterprise for more demanding requirements.
How to use FormVu?
Want to learn more about FormVu and how to use it, we have plenty of tutorials and guides to help you.