simplify usage to "cmd in.pdf out.pdf" only
drop some unused functions