Fixed issue #8443: PDF in print view does not format properly