adding '.pdf'  should probably be done here, rather than inside open_pdf