Bunch of stuff to make PDF reports work reasonably well

This one is a bit more than 5 minutes work so I'd rather leave as is at this time.