Examples UniPDF
Starting from an example can speed up code development significantly.
Protect PDF
Protects PDF files by setting a password on it. This example both sets user and opening password and hard-codes the protection bits here, but easily adjusted in the code here although not on the command line.