{"version":"1.0","type":"rich","title":"Decrypt pdf on command-line","description":"This example shows how to decrypt a password-protected PDF file directly from the command line using the `qpdf` tool. The code first presents a one-line command that applies a known password with the `--decrypt` flag, converting `orig.pdf` into `decrypted.pdf`. It then demonstrates an interactive variant that uses the shell’s `read` built-in with the `-s` flag to silently prompt for a password, storing it in a variable and passing it to `qpdf` via command substitution. The rendering approach is purely textual, relying on standard shell syntax rather than any graphics or visualization library.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-e5dd495ca6123fda20ee876d58a6cd8f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}