Added function for opening pdfs silently