Rename file to match containing folder's name
If you already have a variable with the name you want, the easiest way would be to add a Rename Finder Items action after the PDF is created. Set it to Name Single Item, and you can just drag in the variable as the new name.