Fix the blank pages when generating PDF in Chrome problem.