Fillable PDF Form Fields for HTML to PDF

T
Tomas
ConvertAPI

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 name in 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 name attribute, or its id when it has no name.
  • The fields stay aligned with the controls when CssMediaType is print and when the page sets its own @page size and margins.
  • A dropdown or list field holds the option's label, not its HTML value attribute.
  • Custom controls built from div elements, and controls inside iframes or shadow DOM, are not converted.

Parameters

  • ConvertFormFields (bool, default false) - turns the page's HTML form controls into fillable PDF form fields.

Try it out