added support for PDF files