How to set a password for a PDF file?

Is there a way to set a password from DTP to read-protect a PDF file?

The only possibility is currently to print the document into a new PDF document and to enable the desired security options.

I get it, thanks @cgrunenberg!