This demo shows you how to digital sign an already encrypted/protected PDF document (user-password: "topsecret"; owner-password: "owner").

It is not enough to authenticate at the initial document instance but the signer needs to be able to do this on an intermediate version, too.

See here how to authenticate against an existing security handler of a PDF document.