pdfhell_make
Generate adversarial PDFs with answer keys to inspect trap scenarios before evaluation.
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. One of: "hidden_ocr_mismatch",
"footnote_override", "split_table_across_pages".
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 | |||