pdfhell_make
Generate a single adversarial PDF with its answer key for a given trap family and seed. Inspect the trap before evaluating against it.
Instructions
Generate one adversarial PDF + its answer key.
Useful for an agent to inspect what a specific trap looks like before deciding to evaluate against it.
Args:
trap: Trap family name. The full list of 17+ families is
discoverable via eval_discover (which is also the
source of truth — pdfhell adds families over time and
hard-coding them here would go stale). Examples include
"hidden_ocr_mismatch", "footnote_override", and
the autoresearch-discovered families in mini-v3/v4.
seed: Integer seed. Same seed → byte-identical PDF + identical
answer key.
return_pdf_bytes: If True, include the base64-encoded PDF bytes
in the response. Default False — most agents want the
question / expected answer, not the raw PDF.
Returns:
A dict with the case JSON (id, trap_family, question,
expected_answer, forbidden_answers, metadata) and optionally
the base64-encoded PDF bytes under pdf_base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trap | Yes | ||
| seed | Yes | ||
| return_pdf_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||