Fillable PDF Form Fields for HTML to PDF
The HTML to PDF converter can now turn a web form into a fillable PDF form. Set the new ConvertFormFields parameter to true, and the page's text inputs, text areas, dropdowns, checkboxes and radio buttons become PDF form fields in the same place on the page. Conversions that leave it out are unchanged.
Highlights
- Covers text inputs (including the email, number, date and password types), text areas, dropdowns and list boxes, checkboxes and radio buttons. Radio buttons that share a
namein the same form become one radio group. - Each field keeps the control's current value or selection, and the read-only, disabled, required and maximum length settings carry over. Password fields start empty.
- Each field is named after the control's
nameattribute, or itsidwhen it has no name. - The fields stay aligned with the controls when
CssMediaTypeisprintand when the page sets its own@pagesize and margins. - A dropdown or list field holds the option's label, not its HTML
valueattribute. - Custom controls built from
divelements, and controls inside iframes or shadow DOM, are not converted.
Parameters
ConvertFormFields(bool, defaultfalse) - turns the page's HTML form controls into fillable PDF form fields.
Try it out
- HTML to PDF
- API sandbox: html-to-pdf