Create a Fillable PDF Form
Operator: Abdulla Al Fahad. How tools are built and checked
A lot of forms arrive as flat PDFs: a sign-up sheet exported from a word processor, a scan of an old paper form, a leaflet with blank lines to write on. They look like forms, but a viewer cannot type into them. This tool lays real form fields over such a PDF so that the person on the other end can click a box and type, tick a square or choose from a list.
You draw the fields yourself on the rendered pages. Click where a box should go, or drag to give it the size you want, then name it in the side panel, say whether it is required, and give it a starting value if it needs one. The saved file contains standard AcroForm fields, which Acrobat Reader, Preview, Chrome, Firefox and most phone viewers can fill. If you want to type answers into a form that already has fields, use Fill PDF Form instead; this page does the step before that, creating the fields on a PDF that has none.
Key features
- Text, multiline text, checkbox, radio button, dropdown and date fields placed by click or drag
- Move, resize, keyboard nudge and delete for every field, across all pages
- Unique-name checking that also looks at the fields the PDF already contains
- Radio groups built from buttons that share a name, each with its own reported value
- Required flag, starting text or selection, dropdown choices and font size per field
- Date format hint (three formats) applied by Adobe-style viewers
- Border and fill switches for text-like fields; rotated pages handled so text stays upright
- A preview of the first page that carries a field, and a direct link to test the saved file in Fill PDF Form
Field types, names and what gets written into the PDF
Any page, rotated or not, can carry fields; the page picture you click on is the page as a viewer shows it. A PDF that only restricts printing or copying opens normally, and the saved copy comes out without those restrictions, which the result says. The PDF can be up to 50 MB and must open without a password, since its pages cannot be drawn otherwise.
Six kinds of field can be placed. Text field is a single line. Multiline text accepts several lines and wraps them. Checkbox and radio button are small squares or circles. Dropdown holds a list of choices of which one is picked. Date field is a text field with a date format attached through the PDF's own scripting hooks (AFDate_FormatEx and AFDate_KeystrokeEx), in yyyy-mm-dd, mm/dd/yyyy or dd/mm/yyyy. Adobe Acrobat and Reader apply that format and reject text that is not a date; other viewers ignore the script and treat the field as ordinary text, so the format is a hint there, not a rule.
A click places the field at a default size centred on the click: text 160 by 22 points, multiline 220 by 80, dropdown 150 by 22, date 100 by 22, and checkbox or radio 14 by 14. Dragging draws your own size instead; a dragged checkbox or radio button is made square, between 10 and 40 points on a side. A point is 1/72 inch, so a Letter page is 612 by 792 points and an A4 page about 595 by 842. Fields can be moved by dragging, resized by their handles, and nudged with the arrow keys (1 point, or 10 with Shift; Alt with the arrows resizes).
Field names must be unique, ignoring capitals, and may be up to 100 characters. They cannot contain a full stop, because PDF reads a dot as a parent-and-child path, and they must stay within the Latin letters the standard fonts draw. Radio buttons are the one exception: buttons that share a name form a single group in which only one can be selected, and each button reports its own value, such as basic or pro. The value Off is reserved by the PDF format for 'nothing selected' and is refused. A name that is already used by a field in the PDF you opened is refused too, since the existing fields are kept as they are.
Text is set in Helvetica at 11 points by default. Setting the size to 0 lets the viewer shrink the text to fit the box as you type. Starting text, dropdown choices and names use the PDF standard fonts, which cover Latin letters, numbers and common punctuation (the Windows-1252 set); text such as Polish or Greek letters is rejected with a message naming the character rather than saved as question marks. Text and dropdown fields get a thin grey border and a pale blue fill by default, both of which you can switch off when the underlying page already draws a box. Checkboxes and radio buttons always keep their outline.
A form can hold up to 500 fields. The order in which you add fields is the order they are written into the file, and most viewers use that order for the Tab key, so add them in reading order. The result is saved as the original name plus -fillable.pdf, with Convert CSV recorded as the producer, and it can be opened straight in the Fill PDF Form tool on this site to try it.
How it works
The pages are drawn on screen with pdf.js, and each field you place is kept as a rectangle in points measured from the top-left corner of the displayed page. When you press Create, the rectangle is converted into the page's own coordinate system. That conversion accounts for a page's /Rotate setting and for a CropBox that does not start at the origin, so a field placed on a page rotated by 90 degrees still lands where you saw it, and the widget carries the page's rotation as its appearance rotation so the typed text stays upright.
Each field is then created with the pdf-lib form API: createTextField, createCheckBox, createRadioGroup (one group per shared name, with addOptionToPage for each button) or createDropdown, attached to its page with the rectangle, border and fill you chose. The required flag is the standard field flag, the date format is an additional-actions entry holding the Adobe date script, and starting values are set before the appearances are regenerated on save. If a PDF already has a form, the new fields are added to it and the old ones are untouched.
Validation runs on every edit rather than only at the end. Each field with a problem is outlined in red on the page and listed with 'fix' in the field list, and the save button stays disabled until the count of problems reaches zero, so the file is never written with a duplicate name or an empty dropdown.
Common use cases
- Turning a flat registration sheet for a school club into something parents can fill in on a phone and email back
- Adding yes and no checkboxes and a status dropdown to a scanned equipment checkout form
- Putting a signature-date field and a required name field on a contract template before sending it for completion
- Making a quick feedback form from a one-page PDF with a multiline comments box and a 1 to 5 radio group
How to use this tool
- Open your PDF in the box at the top; its pages appear on the left.
- Pick a field type from the row above the pages, then click a page to place one, or drag to draw its size. Press Esc to put the tool down.
- Select the field to edit its name, starting text, required flag and, for a dropdown, one choice per line. For radio buttons, use Place another button in this group.
- Move and resize fields until they sit on the lines or boxes of the page. Use the field list to jump to one.
- Set the border and fill switches, then press Create fillable PDF once the problem count is gone.
- Check the preview, press Download .pdf, and optionally open the result in Fill PDF Form to try typing into it.
Example
A one-page Letter sign-up sheet (612 by 792 points) with four fields placed on it
Text field top-left at (72, 140), 160 x 22 pt, name full_name, required, starting text empty
Checkbox at (72, 190), 14 x 14 pt, name newsletter, ticked when the form opens
Radio buttons two 14 x 14 pt circles, group name plan, values basic and pro, basic selected
Dropdown 150 x 22 pt, name country, choices USA / UK / France, starting choice UKWhat the saved PDF contains
full_name text field, required rectangle [72, 630, 232, 652] in PDF space (792 - (140 + 22) = 630)
newsletter checkbox, checked
plan radio group, 2 widgets, options [basic, pro], selected basic
country dropdown, options [USA, UK, France], selected UK
4 fields, all visible in Acrobat, Preview and Chrome; reopening the file and listing its fields returns the same four names and typesTips for best results
- Add fields in reading order, top to bottom and left to right. The Tab key in most viewers follows the order they were written.
- Make the box a little shorter than the printed line it sits on, and set the font size to 0 for long answers so the viewer shrinks the text instead of cutting it off.
- Name fields for the answer, such as home_phone, rather than text_7. The names appear as column titles if someone later exports the answers from many copies.
- Turn the border and fill off when the page already draws boxes, and the typed text will look as if it were part of the original layout.
- Use one radio group per question and give every button in it the same name; use separate checkboxes when more than one answer can be ticked.
Common pitfalls
The tool adds fields; it does not detect existing blank lines or boxes in a scan. You place every field by hand.
Fields cannot be changed after saving except by opening the original here again. Keep your original PDF and treat the -fillable copy as a build output.
Signature fields, comb fields (one box per letter), calculations between fields and tab-order editing are not offered. Date formatting is the only script the tool adds.
A PDF carrying a digital signature will show the signature as invalid after fields are added, because the file's bytes changed. The result says so.
A PDF that holds XFA data may be drawn from that data instead of from the AcroForm fields in some viewers. Test the saved file in a current Acrobat Reader or a browser before sending it widely.
Filled answers are not saved by every viewer. Some phone viewers let people type but offer no way to save the typed text back into the file, which is a viewer limit and not a fault in the fields.
Common errors and how to fix them
- A field is outlined in red and the save button is greyed out
- Select it and read the message under its name. The usual causes are a duplicate name, a name with a full stop, a dropdown with no choices, or a radio value used twice in one group.
- "This PDF is password-protected"
- Remove the password with the Unlock PDF tool first and open the unlocked copy here; the page images cannot be drawn without it.
- A starting value is rejected because it contains a character such as Ł or Ω
- The standard PDF fonts used for the fields cannot draw it. Leave the starting text empty and let the person filling the form type it, or use plain Latin letters.
- The date field accepts any text when opened in a browser or phone viewer
- Only Adobe-style viewers run the date script. Put the format you expect, such as dd/mm/yyyy, in the page text beside the field.
Best practices
- Open the saved copy in at least two viewers (a browser and a desktop reader) and type into every field before you send the form out.
- Mark as required only what you truly need. Viewers that enforce the flag stop people from submitting when an optional-looking box is empty.
- Name fields for what they hold (first_name, not text_3) and add them in reading order. The names are what a script or a spreadsheet import sees when the answers are collected later, and the order is what the Tab key follows.
What the browser holds while you work
The PDF's bytes stay in this tab. pdf.js reads them to draw the pages and pdf-lib reads them again when you press Create; neither sends anything to a server, and the page stores nothing in browser storage, so reloading the tab discards the fields you placed. If you plan to place many fields, finish in one sitting.
The finished file is built from your original: pages, text, images and bookmarks come through unchanged, and the new widgets are appended to the pages. File size grows by a few kilobytes per field plus the font resources the form needs.
Radio groups, checkboxes and which to choose
A group of radio buttons is one field with several widgets, so the viewer lets only one be selected and reports the chosen button's value as the field's answer. That is the right choice for questions with exactly one answer, such as a plan or a size. Checkboxes are separate fields, each ticked or not on its own, which suits 'select all that apply'.
To build a group, place one radio button, give it a group name such as plan and a value such as basic, then use Place another button in this group for each further button. The new button inherits the group name and receives a fresh value (Option_1, Option_2 and so on) that you can rename. Only one button in a group may start selected.
Frequently asked questions
Will the form work in Adobe Acrobat?
Yes. The fields are standard AcroForm fields, so Acrobat and Reader can fill them, apply the required flag and run the date format. The same file opens fillable in Preview, Chrome and Firefox, though those viewers do not enforce the date script.
Can I edit a form I made earlier?
You can open it here again. Its existing fields are kept and drawn on the page, and you can add new ones, but this tool cannot move, rename or delete fields that were already in the file.