Added support for directly viewing PDFs