fixes #5478
Merge pull request #5487 from dotCMS/issue-5478-tighten-up-headers-in-PDF-servlet

fixes #5478