GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you're working with PDFs that contain sensitive information, you may want to require a password to read the PDF. If you want to make sure that only certain people can view a PDF, you can apply a password to it with the user_pw option:
You can't imagine how useful that link has been to me. I've needed a tool like that for years. CLI automation of PDF manipulation has now become a regular part of my tool chest. Your link also helped me discover xpdf. Thanks again. One of the reasons I haunt this forum so much.
For info, print protecting (and I presume password protecting too) pdfs can quite easily be bypassed with some common *nix tools. I'll not put them up here, but just to let you know that what you're print protecting can still be printed.
There can't be any spaces between words in the pdf file name. Either rename the pdf file or use an underscore _ in place of a blank space in the file name when typing the name in the Terminal.
... but it's still relevant. People are still using PDFs and imagining that passwords/encryption, Adobe style, actually protects them. (And even though it really doesn't, "the Suits" tell them to do it.) Still using the same tools, etc. to do it. Still need to know the tricks of how they work.
And, Cody, FYI there is a way to specify a filename that has spaces in it on the command line: enclose the filename in double-quotes. If the name itself contains a double-quote character, prefix that character with a backslash in a C-style "escape." This is true of any filename-reference in a Unix shell.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.