1 of 1 people found this helpful
first off, only declare your variable $path once, you don't need to re-declare it as long as you're in the script (unless it's value changes).
From this guide:
Some Save Records as PDF script step options aren’t supported:
1 appending records to an existing PDF
1 selecting the Acrobat version
1 selecting Printing and Editing options on the Security tab
1 deselecting the option that allows screen reading software
1 options on the Initial View tab
I'd read up on page 15/16, but you might need to look at another solution.