Test cases / pdf

deft pdf info

Pages, size, metadata, fonts, images

1 run on real files, 2 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.

Answer a question about a filePassed

How many pages does pub17.pdf have? Write just the number to pages.txt.

deft pdf info pub17.pdf > pages.txt

Input

pub17.pdf 2.9 MB · 142 pages
Page 1Page 2Page 3

Output

pages.txt 287 B
ok pdf.info pub17.pdf  142 pages, letter, PDF 1.7
pages=142 version=1.7 width=612.0 height=792.0 paper=letter title="2025 Publication 17" author=W:CAR:MP:FP producer="Antenna House PDF Output Library 6.6.1437 (Linux64); modified using iText 2.1.7 by 1T3XT" images=1 fonts=26 forms=false
Automatic checks (1)
  • text: file = "pages.txt", contains = ["142"]