PDF service creation: refactoring
refactoring to ease PDF creations