Bartosz Dziewoski wrote in post #1082535:
> You don't set the pdffile variable anywhere.

?

He sets it to ARGV[0]. Perhaps he ran the script without providing an argument?

I have no idea why he's globbing *.pdf and then ignoring the results though.