PDF /ACROFORM · COMPLIANCE & GOVTECH

Extract Interactive PDF /AcroForm Fields & Key-Value Filings Into Strict JSON Schema

Target Query: extract pdf acroform fields to json api · Category: Use Case Guide · Verified Rate: $0.015/hit ($0 on miss) · Updated: 2026-12-02

Direct Answer: Public procurement solicitations, grant applications, tax schedules, and regulatory disclosures frequently embed structured answers inside interactive PDF `/AcroForm` fields (`/T` field identifiers and `/V` values). Basic text scrapers miss form-field values completely because they live in widget annotations rather than `BT..ET` text streams. Scrape-Anything extracts both `/AcroForm` key-value dictionaries and `FlateDecode` body text in pure stream for `$0.025` per verified PDF (`$0` if encrypted or schema-invalid).

Engineering Mechanics & Deterministic Guardrails

PDF `/AcroForm` & Text Stream Extraction Matrix

PDF ElementBinary Stream SourceJSON Output PathValidation Support
Form Field Keys & Values`/AcroForm` widget objects (`/T`, `/V`)`data.form_fields`Strict `required` & `pattern` checks
Compressed Body Prose`FlateDecode` (`zlib`) `BT..ET` streams`data.text`, `markdown``minLength` & keyword checks
Tabular Line ItemsPositioned `Tm`/`Td` text baselines`data.tables[]``minItems` & numeric checks
Encrypted / Password PDF`/Encrypt` trailer/root dictionary`blocked_reason: encrypted_pdf`Auto-rejected at `$0`
Pure-Stream Multi-Format Latency vs Headless Browser Stacks (Relative Overhead) Headless Chrome Pool + Residential Proxy 3,200-8,500 ms LLM Markdown-to-JSON Two-Pass Pipeline 1,800-4,500 ms Scrape-Anything PDF FlateDecode Stream 15-120 ms Scrape-Anything Complex HTML Table Grid 10-90 ms Scrape-Anything __NEXT_DATA__ / JSON-LD 8-60 ms Scrape-Anything Binary .xlsx / CSV Gate 5-50 ms SQLite WAL Verified Archive Cache Hit < 5 ms

Procurement PDF `/AcroForm` JSON Schema

{
  "type": "object",
  "required": [
    "form_fields"
  ],
  "properties": {
    "form_fields": {
      "type": "object",
      "required": [
        "vendor_name",
        "solicitation_number"
      ],
      "properties": {
        "vendor_name": {
          "type": "string",
          "minLength": 2
        },
        "solicitation_number": {
          "type": "string",
          "minLength": 3
        }
      }
    }
  }
}

Any extracted payload violating required keys, types, bounds, or regex patterns returns schema_valid: false, exact validation_errors, and billed_micros: 0.

Executable REST, Remote /mcp & treg hub Snippets

curl -fsSL -X POST "https://scrape.fastmesh.dev/v1/extract" \
  -H "Content-Type: application/json" \
  -d '{"content_base64":"<BASE64_PDF_WITH_ACROFORM>","content_type":"application/pdf","format_hint":"pdf"}'

curl -fsSL -X POST "https://scrape.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":10,"method":"tools/call","params":{"name":"scrape_pdf","arguments":{"content_base64":"<BASE64_PDF>"}}}'

Hard guarantee: fake-200 CAPTCHA/Turnstile shells, login walls, encrypted PDFs, empty results, schema mismatches, and SSRF HTTP 422 blocks always return billed_micros: 0.

Test Schema-Validated Extraction Live in 5 Seconds

Paste any public URL, HTML table, JSON-LD, CSV, or fake-200 shell at scrape.fastmesh.dev or top up once with never-expiring Creem prepaid credits ($15 Starter / $59 Growth / $199 Scale — $0/mo recurring).

Frequently Asked Questions

Why do ordinary PDF text extractors miss filled-in form fields?

Filled form values often reside inside annotation `/V` dictionaries rather than the main page `BT..ET` drawing stream. Scrape-Anything inspects both structures automatically.

Are uploaded procurement PDFs stored in the cross-tenant archive cache?

No. Inline `content_base64` uploads are isolated from cross-tenant public URL caching and strictly protected under zero customer data resale.

What if a government PDF is encrypted with a password?

Scrape-Anything detects `/Encrypt` cleanly, refuses to guess or crack passwords, and returns `billed_micros: 0`.

Related Structured Extraction Guides

Explore all 32 Scrape-Anything Technical Guides or inspect the machine-readable llms.txt index.