Add open_pdf and check_exist