update to creating pdfs