Test cases / pdf

deft pdf delete

Remove pages: --pages 2,5-7

2 runs on real files, 8 tests on generated files, not shown. 0 failed.

Fixed cases

Generated files, compared with ground truth by tools other than deft.

real paper keeps its other pagesPassed

deft pdf delete paper.pdf --pages 1 -o out.pdf

Input

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

Output

out.pdf 904.0 KB · 13 pages
Page 1Page 2Page 3
What it printed
ok pdf.delete paper.pdf -> out.pdf  13 pages left  0.01s
Automatic checks (1)
  • smaller: file = "out.pdf", than = "paper.pdf"

Real-file tasks

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

Remove pages from a formPassed

Remove pages 2 and 5 from fw9.pdf and save the result as w9-short.pdf.

deft pdf delete fw9.pdf --pages 2,5 -o w9-short.pdf

Input

fw9.pdf 137.5 KB · 6 pages
Page 1Page 2Page 3

Output

w9-short.pdf 104.4 KB · 4 pages
Page 1Page 2Page 3
Automatic checks (1)
  • pdf_pages: file = "w9-short.pdf", pages = 4