build,minor: refactoring build file for pdfs, to be less obtuse.