Microsoft Power Automate template
Compress and password protect a PDF from SharePoint and email
By Adobe PDF Services
Use this flow to compress and password protect any selected file in SharePoint using Adobe PDF Services, and then send it by email as an attachment. The password protection requires any recipients to enter the password before they can open the PDF document.