Test cases / pdf

deft pdf rotate

Turn pages clockwise: --angle 90, --pages

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

Fixed cases

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

a page that is already turned adds upPassed

deft pdf rotate rotated.pdf --angle 90 -o out.pdf

Input

rotated.pdf 12.7 KB · 1 page
Page 1

Output

out.pdf 12.0 KB · 1 page
Page 1
What it printed
ok pdf.rotate rotated.pdf -> out.pdf  1 page turned 90 degrees  0.00s
Automatic checks (1)
  • pdf_pages: file = "out.pdf", pages = 1

Real-file tasks

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

Rotate only one pagePassed

Page 1 of fw9.pdf should be turned 90 degrees clockwise; leave the other pages alone. Save as turned.pdf.

deft pdf rotate fw9.pdf --pages 1 --angle 90 -o turned.pdf

Input

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

Output

turned.pdf 135.0 KB · 6 pages
Page 1Page 2Page 3
Automatic checks (3)
  • pdf_pages: file = "turned.pdf", pages = 6
  • pdf_page: file = "turned.pdf", page = 1, orientation = "landscape"
  • pdf_page: file = "turned.pdf", page = 2, orientation = "portrait"