In fillable PDF vs scanned PDF data extraction, the fillable file wins on effort: its typed values sit in named form fields you can read directly, with no OCR. A scanned PDF holds only a picture of the page, so software must recognize the text first. The catch is that fillable field names rarely say which tax box they hold.
What a fillable PDF stores in its form fields
A fillable PDF is a PDF with interactive form fields: text boxes, checkboxes and drop-downs that a person can type into on screen. Each field has a name and a value. The value is stored as data inside the file, separate from the printed lines and labels you see on the page.
That separation is the whole reason a fillable file is easy to read. The page you look at has two layers. One is the drawing of the form: the boxes, the labels, the instructions in small print. The other is a list of fields, each one tied to a spot on the page and each one holding whatever was typed there. The pypdf documentation on working with forms shows that list coming back as a mapping from field names to values, such as {"key": "value", "key2": "value2"}.
A field is not the same thing as the box it sits on. The field is the data. The visible rectangle where it appears is a separate widget that controls how the value is drawn. The same pypdf page notes that a field can hold a hidden value with no widget on any page at all. In practice that means a fillable form can carry data you never see when you print it.
Some fillable PDFs use a second, older form technology called XFA, which stores the form as XML inside the PDF. The pypdf documentation says an XFA form overrides the page content in viewers that support it, so two programs can show different things for the same file. If a fillable tax form looks blank in one viewer and filled in another, XFA is a likely cause.
For data work, the takeaway is short. A fillable PDF that still has its fields is already structured data. You do not need to read the page as an image. You need to read the field list and work out which field is which.
How do you extract form fields from a PDF before it is flattened?
To extract form fields from a PDF, open it with a tool that reads the form layer and export the field names and values before anyone flattens or prints it. Desktop PDF editors usually offer a form data export, and programming libraries such as pypdf return every field as a name and value pair.
The library route is the most transparent, because you see exactly what the file holds. The pypdf forms guide describes two calls. One returns only the text fields as a dictionary of names and values. The other returns every field, including checkboxes and buttons, with more detail about each one. Either result can be written straight to a CSV with one column per field name.
Some desktop PDF editors also offer a way to export form data without code; check your editor's own help pages for what it supports.
Three habits keep the export clean:
- Export from the file you received, not from a copy someone re-saved or printed to a new PDF, which may no longer carry the fields.
- Keep the original file next to the export, named the same way, so every value can be traced back.
- Open the export and check a few values against the page before you trust the rest.
The export gives you raw field names, which leads to the real work: mapping each name to a box. The section on field names versus box numbers below covers that step. Once the values are mapped, they are ready for a sheet laid out with one row per form.
Flattened and printed fillable PDFs
A flattened PDF is a fillable PDF whose field values have been turned into ordinary page content and whose fields have been removed. The pypdf forms guide describes flattening as converting form field contents to regular PDF content. After that, the typed values are just text drawn on the page.
Flattening is common because it locks a form so nobody can change it. Payroll systems, accounting tools and people who want a final copy all do it. The result looks identical to the fillable version on screen. The difference only shows when you try to read the fields and find none.
A flattened PDF still usually has a text layer, which means the characters can be selected and copied. That puts it in the same family as any other digital PDF: you can pull the words out, but they come back as loose text with positions, not as named fields. Software then has to pair each number with the label beside it, the same work it does on any digital document. The test for telling a scanned PDF from a digital one shows how to check which kind you have.
Printing goes one step further. A fillable form that is printed on paper and scanned back in has lost both its fields and its text layer. It is now a picture of a form, and it behaves exactly like any other scan. The values have to be recognized from pixels, with all the usual risks: faint print, skew, stray marks.
The order of operations matters here. If you have the fillable original, extract the fields first and flatten or print afterward. Once a form is flattened, the field names are gone for good. You can recover the values from the text layer, but you will be mapping them by position instead of by name.
Fillable PDF field names versus tax form box numbers
A fillable PDF field name is whatever the form's author typed when they built the form. It might be descriptive, like EmployeeWages, or generic, like Text12 or f1_3. The name and the printed box number are chosen separately, so a field called Text12 can hold Box 3.
This is the part of fillable extraction that takes real time. You export forty fields and get forty names, half of them numbered in the order the author happened to draw them. Box 1a might be the fifth field. The payer's TIN might be split across two fields. A checkbox might export as a code rather than as true or false.
The fix is a mapping table you build once per form layout. Fill a copy of the form with a different dummy value in every box, export the fields, and read off which name received which value. A small example with made-up names:
| Field name in the file (example) | Dummy value typed | Box it maps to |
|---|---|---|
| Text4 | 111.11 | 1099-NEC Box 1a |
| Text9 | 444.44 | 1099-NEC Box 4 |
| Text2 | XX-XXXXXXX | Payer's TIN |
| CheckBox1 | checked | Box 2 checkbox |
The mapping only holds for that exact layout. When an issuer redesigns its form, or a new revision of the IRS form adds boxes, the field names can shift. The current IRS 1099-NEC form, for example, shows Box 1a for nonemployee compensation followed by new boxes 1b, 1c and 1d, so a mapping built on an older layout would be off by several fields.
Even with a mapping, a box number alone is a weak label. The IRS General Instructions for Forms W-2 and W-3 put wages, tips and other compensation in W-2 Box 1, while the IRS Instructions for Forms 1099-MISC and 1099-NEC put rents in 1099-MISC Box 1. Storing the value under a field name that says what it is, with the box number beside it, avoids that confusion when the data later lands in JSON. The guide to tax form JSON keys covers how to name them.
Which tax PDFs arrive fillable and which arrive scanned?
Tax PDFs arrive in three broad shapes: fillable forms that still have their fields, digital PDFs that were flattened or generated without fields, and scans or photos of paper. A single folder often holds all three, and you cannot tell them apart by the file name. Check each file before choosing how to extract it.
Blank forms that payers download from the IRS are one starting point. The notice at the front of the IRS Form 1099-NEC PDF says payers may download and print Copy B and other copies, which appear in black, to give to recipients. The same notice says Copy A from that PDF is for information only and that self-printed copies of it are not scannable. The IRS General Instructions for Forms W-2 and W-3 similarly say not to print Copy A from IRS.gov and file it with the SSA. A payer that fills in a fillable version of a form on screen and emails the file may send you one with live fields.
Statements generated by larger payers usually come from their own systems. Brokers often send substitute statements, and the IRS Instructions for Form 1099-B say brokers that use substitute statements may report several kinds of transactions on one statement. These documents rarely carry form fields. They tend to be digital PDFs with a text layer and a layout that differs from the IRS version.
Paper forms that came in the mail become scans or phone photos the moment you digitize them. So do forms a client prints, signs or annotates before handing over. Any of these needs OCR.
A quick sort before extraction saves time. Open each file and try to click into a box. If a cursor appears, it is fillable. If you can select text but not type, it is a flattened digital PDF. If you can do neither, it is a scan.
Fillable PDF vs scanned PDF extraction side by side
Fillable PDF vs scanned PDF extraction differs on four points: where the values live, how you get them out, what the output is named, and what goes wrong. A fillable file trades OCR errors for mapping errors. A scanned file trades mapping work for recognition and review work. The table below compares them on each point.
| Fillable PDF with fields | Scanned PDF or photo | |
|---|---|---|
| Where values live | In named form fields inside the file | In pixels of a page image |
| Extraction method | Read the field list with a PDF library or a form data export | OCR, then pair each value with its label |
| Field naming | Author's names, often generic like Text12 | None until software assigns one |
| Typical errors | Wrong field mapped to a box, checkbox values exported as codes, hidden fields picked up | Misread digits, skewed or faint text, values paired with the wrong label |
| Effort per new layout | Build one mapping table, then reuse it | Little setup, but each page needs a review pass |
| What breaks it | Flattening, printing, or a new form revision | Poor scan quality, handwriting, stamps |
Accuracy works differently on each side. On a fillable form, a value is either exactly what was typed or it is in the wrong column because the mapping is off. There is no in-between. On a scan, a value can be almost right: a 7 read as a 1, a decimal point lost. That is why scanned extraction leans on checks such as recomputing totals and testing TIN patterns.
Effort depends on volume and variety. One fillable layout seen a hundred times is cheap to handle once the mapping exists. A hundred forms from forty issuers, half of them scans, is a different job. For that mix, a reader that works from the page image handles every file the same way. Schema Tax takes PDFs, scans and phone photos, reads each box into a field with a fixed name, and flags uncertain values for review; the list of supported forms shows which ones it covers.
Whichever route the data takes, it ends up in a sheet. The post on building an Excel sheet for taxes from your forms shows a workbook that accepts rows from either source, and preparers handling client files can find more workflow posts in the tax preparers category.