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



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"]