It's not that it's annoying, it's just that the basename of the file has to be in curly braces, and the extension (i.e., ".pdf") has to come after the curly braces.