add pdf to txt on input