LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 05-30-2007, 12:16 AM   #1
cheeseandpenguins
Member
 
Registered: May 2007
Distribution: suse 10.1, fedora 6
Posts: 39

Rep: Reputation: 15
Wink How do you password protect a .pdf?


also is it possible to copy text (or import text, for example in .txt format) into a pdf and then save it and password protect it...

and print protect? (prevent people from printing the document)

Is there a better way to do this maybe? is there another program that you know of besides adobe that can do all (or some) of this?

thanks for any contributions...
 
Old 05-30-2007, 08:10 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Never used it myself, I found this:

Pdftk - the PDF Toolkit
http://www.accesspdf.com/pdftk/

Quote:
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:

pdftk sales_report.pdf output SalesReport.pdf user_pw PROMPT

You will be prompted for a password of up to 32 characters. When someone tries to open the PDF, they will be asked to enter a password.
http://www.linux.com/article.pl?sid=06/04/17/1943230
 
Old 06-04-2007, 11:27 AM   #3
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
Thanx!

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.
 
Old 06-04-2007, 11:56 AM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
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.
 
Old 06-04-2007, 08:27 PM   #5
cheeseandpenguins
Member
 
Registered: May 2007
Distribution: suse 10.1, fedora 6
Posts: 39

Original Poster
Rep: Reputation: 15
thanx guys... i'll look into that...
 
Old 06-05-2007, 09:21 AM   #6
hotty_pwns_u!
Guest
 
Posts: n/a
no it didnt
 
Old 05-06-2015, 12:06 PM   #7
Cody Morgan
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
PDF password

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.
 
Old 05-07-2015, 01:30 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Cody Morgan

Hi

but please REFRAIN from Necro posting to a 8 EIGHT YEAR OLD POST

this is from 2007
 
Old 05-07-2015, 06:50 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
... 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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect souvik Programming 3 11-06-2015 01:35 PM
How do I password protect a HD? randell6564 Ubuntu 3 10-31-2006 01:03 PM
.htaccess and password protect comptech520 Linux - General 1 06-12-2006 10:45 AM
how to password protect certain directories? sirpelidor Linux - Security 3 10-06-2004 12:16 PM
how to protect a file with password bobgodwinx Linux - Security 7 07-20-2004 08:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration