Fix formating
Add support for pdfs