The decrypting methods for Windows and macOS are almost similar. The Official Method: Adobe Acrobat Pro DC.Three ways to remove PDF password on Windows 10 and macOS
The methods recommended below are only applicable if you already know the password of the encrypted PDF file.