Setting Password For PDF File--Linux

view story

http://www.unix.com – Hi, I am in need of help. My requirements are : 1) To convert the existing files (irrespective of their format) in a directory to PDF format 2) To make the converted files password protected. I did the attempt to do the same. Though the existing files (irrespective of their format) are getting converted to pdf, but when I take the the to local desktop, it is not opening as its pops "format not supported". I did as " mv $i* $i.pdf " (variable i which holds the existing file name alone). I have no idea how to make it password protected. Please help me asap. (HowTos)