Test cases / pdf

deft pdf select

Keep and reorder pages

1 run on real files, 9 tests on generated files, not shown. 0 failed.

Real-file tasks

Real files and a plain-language job, from the agent benchmark. These are the reference answers, not an agent run.

Keep the first pages of a paperPassed

Make intro.pdf containing only the first 3 pages of paper.pdf.

deft pdf select paper.pdf --pages 1-3 -o intro.pdf

Input

paper.pdf 992.5 KB · 14 pages
Page 1Page 2Page 3

Output

intro.pdf 150.6 KB · 3 pages
Page 1Page 2Page 3
Automatic checks (2)
  • pdf_pages: file = "intro.pdf", pages = 3
  • pdf_text: file = "intro.pdf", contains = ["Trace-based"]