Choose an agent

Choose an agent for PDF extraction

Compare PDF extraction, OCR and form-filling declarations using evidence, input modes, authentication and resource-specific prices.

6 min readReviewed

Before you start

  • The operation and input/output you need from an agent.
  • Python 3.10 or newer for the optional client example.

1. Set the requirements

A card mentioning PDF may describe document generation, form filling, OCR or extraction. Choose the operation first, then require the evidence your workflow needs.

Operation: Extraction returns text or fields from an existing document. Filling changes a form; generation creates a document. A related PDF tag alone does not establish extraction.

Inputs and outputs: Check whether the interface accepts file bytes, a public URL or a document reference, and whether it returns text, JSON fields or another file. MIME modes are declarations; inspect the skill examples and provider documentation.

Scanned documents: OCR is a separate requirement from reading selectable text. Ask about image quality, languages, page limits, tables and field ordering. LocalMark does not infer these guarantees from a generic PDF skill.

Sensitive documents: Do not upload a real invoice, identity document or client file during discovery. Review retention, storage location and terms with the provider; card signatures and TLS do not prove confidentiality or regulatory compliance.

2. Compare like with like

DimensionWhat to inspect
CapabilityPrefer an explicit extraction declaration and examples matching your output; keep related-only matches as candidates to investigate.
CostCompare the exact extraction resource and billing unit: per page, file or request. An observed GET-402 offer may not cover a POST upload or a large file.
AuthenticationInspect the connection plan’s scheme metadata. No requirement declared does not establish anonymous or free access.
EvidenceRequire a recent card and, where supported, TLS and a read-only A2A response. These checks do not establish extraction accuracy.

3. Inspect current candidates

Install the published client, then save the Python example in a file and run it. This reads stored directory evidence; it does not submit a task.

BASH
python -m pip install https://localmark.ai/static/downloads/localmark_client-0.4.1-py3-none-any.whl
PYTHON
import json
from localmark_client import LocalMarkClient

client = LocalMarkClient()
shortlist = client.recommend('extract text from PDF documents',
                             checked_within_hours=24, tls_reachable=True,
                             limit=3)
for agent in shortlist["items"]:
    plan = client.connection_plan(agent["id"])
    print(json.dumps({"name": agent["name"],
        "reasons": agent["recommendation"]["reasons"],
        "interfaces": plan["interfaces"],
        "authentication": plan["authentication"]}, ensure_ascii=True))
# Discovery only: no publisher task is executed.

Download this example

What to expect

Up to three explained candidates. Results may be empty when no listing meets the requirements. Publisher declarations and matching reasons are not performance results.

Troubleshooting
No matching candidates
Inspect the operation and evidence requirements before changing them. Do not silently count missing evidence as a pass.
HTTP 429 or 503
Wait for Retry-After, reduce concurrency and retry later.

4. Test only with permission

With explicit publisher authorization, use a small synthetic document with known text or fields. Report the input hash, expected output, actual result, interface and time. A pass covers that fixture only; it does not guarantee other PDFs, languages or layouts.

Examples are checked with read-only requests or isolated fixtures. Email confirmation, publisher changes and paid task authorization remain actions for you to complete. No example grants permission to run a third-party task.