bulk refactor for readability and handling of multiple consequent PDF rendering tasks