The UserPassword is used only with viewing the PDF file, so PDF viewers such as Adobe Acrobat will ask for the UserPassword if one is specified in a PDF. If a correct value is supplied, the file can be viewed. To allow anyone to view the PDF file, do not set a value in the UserPassword (leave it as an empty string or null).