Encryption is different from permission flags
With an open password and a modern encryption revision, a PDF reader cannot recover the page content without deriving the correct key. This is the mechanism to evaluate when confidentiality at rest or in transit matters.
Permission flags are entries in the encryption dictionary that ask a compliant viewer to withhold actions such as printing or copying. A viewer can ignore them, and anything that can render the page can usually reproduce its content. Treat flags as signalling, not access control.
A strong cipher does not rescue a guessable password. Store the password separately from the file and use external encryption software whose supported revisions, key handling and recovery process you understand.