Revert commit fc73e2e (PR 5005) for breaking certain PDF files
Merge pull request #5069 from Snuffleupagus/revert-5005

Revert commit fc73e2e (PR 5005) for breaking certain PDF files