After opening a .pdf file with Adobe Acrobat, go through menu File->Properties->Description tab, we can see the fields such as Author, Subject, Title, Keywords etc. If the .pdf file is created with LaTeX in the usual way, these fields are editable. How could we prevent this? For example, I have seen some .pdf files with these fields uneditable (grayed out). Maybe they are created with other softwares. Does LaTeX offer such functionality?
I know maybe I can use Adobe Acrobat to post-process the .pdf file generated by LaTeX, using password to add some restrictions. However, I don't quite need password protection. I just don't want someone else to change the Author field. And I want to have it all set up in LaTeX itself.
After looking at another thread, I found the solution: Use PDFtk(www.pdflabs.com). I only tried its Windows version. The Windows version comes with 3 kinds: PDFtk Free(GUI, free, limited functions cannot encrypt/decrypt), PDFtk Pro(GUI, not free, unlimited functions), PDFtk Server(command line, free, unlimited functions). I recommand the command line version.
For example:
pdftk unsecured.pdf output secured.pdf owner_pw abcd1234
will generate the file secured.pdf from the original file unsecured.pdf, and secured.pdf is encrypted with the owner password (please distinguish between owner password and user password) "abcd1234". By default it encrypts everything. However, it seems that whitespace is not allowed in the password.