Formatting for pdfs