Tech, Gadgets, Photography, Social Media and Poor Spelling


We can user pdftk tool to create a password locked pdf file i.e. to open the pdf file we need to open the supply a password

The options that have to be passed to pdftk are

pdftk <input_pdf_file> output <output_pdf_file> encrypt40bit  user_pw <Password_for_the_file>

Let us say we have a file temp.pdf and we want to have the password “hello” for opening the file and we will call the new file by the name temp_passwd.pdf

pdftk temp.pdf output  temp_passwd.pdf encrypt_40bit  user_pw “hello”

Now if we try to open the file temp_passwd.pdf we will be prompted for a password and the file will open only if we pass the password “hello”. 

In the command we also use encrypt_128bit instead of encrypt_40bit.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


This entry was posted on January 15, 2013 by in Linux, tip and tagged , , , , , , , , , , , , .
%d bloggers like this: