{
  "method": {
    "corpora": [
      "GovDocs1 (2009-era US government documents; threads 000, 050, ... 950; the same 4,840 PDFs as the metadata, redaction and encryption studies)",
      "CC-MAIN-2021-31-PDF-UNTRUNCATED (PDFs from a July/August 2021 web crawl; zips 0000, 1600, 3200, 4800, 6400)"
    ],
    "sampleRule": "every extracted PDF of both corpora (a census, no sample); an encrypted file cannot be opened by HerePDF and is counted apart",
    "fields": "fields are the terminal AcroForm fields HerePDF's own reader (lib/pdfForm.js readFormFields) finds with at least one widget on a page; XFA is an /XFA entry in the AcroForm (dynamic when the catalog says /NeedsRendering true); scripts are a field or widget with an /AA entry, a /CO calculation order, or any /S /JavaScript action",
    "fill": "every field that is not read-only, not a password field, not a button or signature, and has a visible widget, is given a value (a probe string; a check box its on value; the first radio button; the first option of a drop-down that cannot be typed into) by lib/pdfForm.js fillForm, then read back by HerePDF's reader and by PDF.js (the widget's fieldValue)",
    "flatten": "the same changes saved with fillForm's flatten option, as the tool does; the output is checked for widgets (PDF.js), an AcroForm, field dictionaries (a whole-file scan, tests/wholeFileText.js) and whether each typed answer is page text on its page (PDF.js getTextContent, first 20 pages)",
    "comments": "markup is an annotation of subtype Text, Highlight, Underline, StrikeOut, Squiggly, FreeText, Ink, Line, Square, Circle, Polygon, PolyLine, Stamp, Caret or Redact; an author is a non-empty /T; flattening comments is lib/pdfFlatten.js flattenPdf with forms off, and a comment text is looked for in the whole file before and after",
    "libFlatten": "pdf-lib's own form.flatten() beside HerePDF's flattenForm, each run on the unfilled file and saved with lib/pdfLoad.js savePdf; 'field dictionaries left' is a whole-file scan for /FT /Tx, /Btn, /Ch or /Sig",
    "limits": "two public collections of PDFs found on the web, one from 2009 and one from 2021: they say nothing about the forms and reviewed drafts people keep private. The values are probe strings, not real answers; the tools were not run in a browser. Counts of forms only cover forms HerePDF can open",
    "sampleIdsSha256": {
      "govdocs1": "67d4e54dc5793ae9ad4887adca9974bf58b5703012e5c870bf038631897a2457",
      "cc2021": "e280f39a85a608d1ae955439808ffe07ab4a6ff0426f2f0bbe455d269e2f1996"
    },
    "tool": {
      "pdfLib": "2.11.1",
      "pdfjs": "6.4.299"
    },
    "generatedOn": "2026-10-27",
    "commit": "2c82e28 (plus uncommitted changes)"
  },
  "flattenBeforeFix": {
    "files": 54,
    "filesWithWidgetsLeft": 3,
    "filesWithFieldDictsLeft": 4
  },
  "govdocs1": {
    "label": "GovDocs1",
    "year": 2009,
    "tried": 4840,
    "completed": 4641,
    "notCompleted": {
      "encrypted": 197,
      "unreadable": 2
    },
    "forms": {
      "withAcroForm": 516,
      "withFields": 45,
      "xfa": 1,
      "xfaOnly": 0,
      "xfaDynamic": 0,
      "fields": 2070,
      "types": {
        "text": 914,
        "button": 38,
        "signature": 5,
        "checkbox": 1064,
        "radio": 37,
        "dropdown": 12
      },
      "fillable": 32,
      "alreadyFilled": 19,
      "withReadOnlyFields": 12,
      "withRequiredFields": 1,
      "withHiddenFields": 3,
      "withFieldScripts": 9,
      "withCalculation": 2,
      "withSignatureFields": 3,
      "withSignedSignature": 1,
      "withWidgetNoAppearance": 15,
      "anyJavaScriptInFormFiles": 11
    },
    "fill": {
      "files": 32,
      "fieldsAttempted": 1915,
      "byType": {
        "text": 805,
        "checkbox": 1064,
        "radio": 37,
        "dropdown": 9
      },
      "threw": 0,
      "fieldsReadBack": 1915,
      "filesAllReadBack": 32,
      "textFields": 805,
      "textSeenByPdfjs": 805,
      "filesAllTextSeenByPdfjs": 32
    },
    "flatten": {
      "files": 32,
      "threw": 0,
      "filesWithSkippedFields": 0,
      "fieldsSkipped": 0,
      "filesWithWidgetsLeft": 0,
      "filesWithAcroFormLeft": 0,
      "filesWithFieldDictsLeft": 0,
      "answersChecked": 646,
      "answersAsPageText": 646
    },
    "libFlatten": {
      "files": 45,
      "pdfLibThrew": 1,
      "pdfLibFieldDictsLeft": 0,
      "herepdfThrew": 0,
      "herepdfFieldDictsLeft": 0,
      "herepdfFilesWithSkipped": 0
    },
    "comments": {
      "filesWithMarkup": 57,
      "markup": 304,
      "subtypes": {
        "FreeText": 108,
        "Line": 33,
        "Text": 37,
        "Stamp": 18,
        "Underline": 85,
        "Square": 6,
        "Highlight": 15,
        "Ink": 2
      },
      "filesWithText": 32,
      "filesWithAuthor": 56,
      "filesWithOneAuthor": 55,
      "filesWithSeveralAuthors": 1,
      "markupWithAuthor": 281
    },
    "commentsFlatten": {
      "files": 57,
      "threw": 0,
      "marksFlattened": 267,
      "commentsLost": 0,
      "filesWithCommentsLost": 0,
      "notesKept": 37,
      "redactionsKept": 0,
      "filesWithRedactionsKept": 0,
      "otherKept": 0,
      "hiddenRemoved": 0,
      "unflattenable": 0,
      "filesWithUnflattenable": 0
    }
  },
  "cc2021": {
    "label": "Web crawl",
    "year": 2021,
    "tried": 4986,
    "completed": 4870,
    "notCompleted": {
      "encrypted": 110,
      "unreadable": 6
    },
    "forms": {
      "withAcroForm": 344,
      "withFields": 95,
      "xfa": 2,
      "xfaOnly": 0,
      "xfaDynamic": 0,
      "fields": 5915,
      "types": {
        "signature": 70,
        "button": 85,
        "text": 4464,
        "dropdown": 23,
        "checkbox": 1195,
        "radio": 77,
        "list": 1
      },
      "fillable": 54,
      "alreadyFilled": 18,
      "withReadOnlyFields": 6,
      "withRequiredFields": 7,
      "withHiddenFields": 2,
      "withFieldScripts": 14,
      "withCalculation": 0,
      "withSignatureFields": 44,
      "withSignedSignature": 34,
      "withWidgetNoAppearance": 36,
      "anyJavaScriptInFormFiles": 13
    },
    "fill": {
      "files": 54,
      "fieldsAttempted": 5562,
      "byType": {
        "dropdown": 23,
        "text": 4280,
        "checkbox": 1182,
        "radio": 77
      },
      "threw": 0,
      "fieldsReadBack": 5562,
      "filesAllReadBack": 54,
      "textFields": 4280,
      "textSeenByPdfjs": 4280,
      "filesAllTextSeenByPdfjs": 54
    },
    "flatten": {
      "files": 54,
      "threw": 0,
      "filesWithSkippedFields": 0,
      "fieldsSkipped": 0,
      "filesWithWidgetsLeft": 0,
      "filesWithAcroFormLeft": 0,
      "filesWithFieldDictsLeft": 1,
      "answersChecked": 2279,
      "answersAsPageText": 2256
    },
    "libFlatten": {
      "files": 95,
      "pdfLibThrew": 3,
      "pdfLibFieldDictsLeft": 5,
      "herepdfThrew": 0,
      "herepdfFieldDictsLeft": 4,
      "herepdfFilesWithSkipped": 0
    },
    "comments": {
      "filesWithMarkup": 58,
      "markup": 1943,
      "subtypes": {
        "FreeText": 158,
        "Highlight": 99,
        "Text": 12,
        "Square": 1169,
        "Stamp": 15,
        "Redact": 6,
        "Ink": 3,
        "Underline": 4,
        "Line": 218,
        "StrikeOut": 95,
        "Caret": 160,
        "Circle": 4
      },
      "filesWithText": 31,
      "filesWithAuthor": 54,
      "filesWithOneAuthor": 46,
      "filesWithSeveralAuthors": 8,
      "markupWithAuthor": 1848
    },
    "commentsFlatten": {
      "files": 58,
      "threw": 0,
      "marksFlattened": 726,
      "commentsLost": 161,
      "filesWithCommentsLost": 2,
      "notesKept": 12,
      "redactionsKept": 6,
      "filesWithRedactionsKept": 1,
      "otherKept": 0,
      "hiddenRemoved": 0,
      "unflattenable": 1199,
      "filesWithUnflattenable": 9
    }
  }
}
