Test cases / pdf

deft pdf search

Find text: --text invoice

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

Fixed cases

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

a word in a real paperPassed

It must print Firefox.

deft pdf search paper.pdf --text Firefox

Input

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

Output

No output file. The result is what it printed.

What it printed
ok pdf.search paper.pdf  2 matches on 2 pages
matches=2 pages=[{"page":8,"hits":1,"snippet":"the JavaScript VM embedded in Mozilla’s Firefox open-source web browser (2), which is used by more t"},{"page":14,"hits":1,"snippet":"l/2008- 02/msg00051.html. [2] Mozilla — Firefox web browser and Thunderbird email client - http://ww"}]