A sample encrypted pdf file can be downloaded from Adobe’s site:
NB. The encrypted file must have printing permissions.
1. Open the file with Preview
One can verify that it is encrypted by going to Tools -> Inspector -> Encryption Inspector (the lock icon)
2. Go to File -> Print -> PDF -> Save as PDF. And voila, an unencrypted version of the file is saved.