Fixed formatting issues for PDF