refactor pdfjam