This demo applies a standard security handler (user and owner password) to an existing PDF document.
The user password is "user" and the owner password is "owner".
It is up to the reader application to whether respect the defined permissions or not (not all viewer applications respect these flags).