Read a PDF’s encryption and viewer permission flags.
Inputs and settings
- PDF file (
file, Text File reference, required). - PDF password (
ownerPassword, Text Credential reference, optional). Connect an open or owner password when the PDF requires one. Use a General or Cryptography Credential. - Fire (
fire). Begins the read when the block runs.
Outputs
- PDF permissions (
permissions, Record). Containsencrypted,algorithm,keyBits,ownerAccess,canCopy,canPrint, andcanEdit. - Fire (
fire). Emitted after a successful read.
Example and recovery
Connect the output of Encrypt PDF and supply the open password to check the reader restrictions. The owner-access flag reports whether the supplied credential matched the owner password. Stored print, copy, and edit flags describe PDF settings.
Install local qpdf as described in the package setup. If the PDF cannot be opened, reconnect the appropriate password Credential.
