Improve rendering of PDF docs