Use the action mentioned in the screenshot to get the desired output. This action takes three inputs that are binary and user and owner password to get the protected pdf.