It looks like you're trying to generate a paper based on a filename: