allowed sending post data to create pdf
refactors