[texhax] Q: how add password(s) to .pdf?

Fehd, Ronald J. (CDC/CCHIS/NCPHI) rjf2 at CDC.GOV
Fri Nov 28 16:49:04 CET 2008

Before I purchase Adobe v9 professional
I want to know if anyone 
knows the name of pdfLaTeX hyperref parameters to add passwords for
* printing
* text extraction
* etc

Here is my hyperref options list:

\usepackage[bookmarks=false%SUGI style guide
           ,pdfkeywords ={assertions 
           }%end pdfkeywords
           ,pdfsubject  ={replacement for macro if statement
           }%end pdfkeysubject
           ,pdfstartview=FitBH%fit width of page to the window
           ,pdfusetitle%author and title
\pdfcompresslevel=9%best compression level for text and image

I have reviewed hyperref.sty


I believe that the kewword parameters are defined here

line 2636:
\define at key{Hyp}{pdfsubject}{\pdfstringdef\@pdfsubject{#1}}
\define at key{Hyp}{pdfkeywords}{\pdfstringdef\@pdfkeywords{#1}}

line 2740:

and see, beginning at line 3633:

\HyField at NewFlag{Ff}{ReadOnly}{1}
\HyField at NewFlag{Ff}{Required}{2}
\HyField at NewFlag{Ff}{NoExport}{3}
\HyField at NewFlag{Ff}{NoToggleToOff}{15}
\HyField at NewFlag{Ff}{Radio}{16}
\HyField at NewFlag{Ff}{Pushbutton}{17}
\HyField at NewFlag{Ff}{RadiosInUnison}{26}
\HyField at NewFlag{Ff}{Multiline}{13}
\HyField at NewFlag{Ff}{Password}{14}

Q.1: Are these flags what I need to know how to set?

Q.2: how do I set a password on my pdf?

thanx in advance 

Ron Fehd on SAS-L: 
         the macro maven  CDC Atlanta GA USA RJF2 at cdc dot gov

More information about the texhax mailing list