Extracting data from PDF to create a filename

That is a null pointer exception, you have to populate that value