4. Interactive PDF Forms

HTML and XHTML forms are automatically rendered by PDFreactor. In addition, you can also convert HTML & XHTML forms to fully functional interactive PDF forms (sometimes refered to as AcroForms) using the proprietary CSS property -ro-pdf-format. This property must be specified for the forms you wish to convert to an interactive PDF form.

Example form:

<form id="credentials">
    First Name: <input type="text" value="firstname" />
    Last Name: <input type="text" value="lastname" />
    <input type="submit" />
</form>

To convert the form with the ID "credentials" to an AcroForm, you can use this style declaration:

#credentials, #credentials > input { -ro-pdf-format: pdf; }

Using this style declaration, only the form with the ID "credentials" and the input fields contained in this form are converted to an AcroForm when the PDF is rendered. Only the forms and form elements having this CSS style are converted. You can convert all forms and input fields using this CSS code:

form, form input { -ro-pdf-format: pdf; }