Hi Krishna,
I hope you would have gone through the below link -
Creating Password Protected PDF file and Zipping it Using SAP PI
It didn't worked for me, as I am working on PO 7.4 and the deployment might be an issue.
You can try at your end.
Thanks,
Nidhi