In MS Word, for example, when you "Save as" PDF, you can choose "options" -> Encrypt the document with a password.
It would be great to have this feature