PDF file format supports user password and owner password for protecting PDF files. PDF Encrypter Command Line is a command based tool for encrypting PDF with passwords.
A user password is for controling the permission of opening a PDF, people who do not know the user password will not open the protected PDF. An owner password is for controling the other permissions except opening. With an owner password, you can restrict the permissions to copy, print or modify the PDF. Without inputting valid owner password, those permissions will be denied.
PDF Encrypter Command Line has three separate versions for Windows, Mac OS and Linux systems. The entire three programs have the same functions and usages to each other. You can learn the usage of any one and then know the usages of the other two. This article is to present the usage of the Mac OS version in encrypting a PDF.
Firstly, download the package of the Mac OS version, and mount the downloaded DMG disk image to your Mac OS system. The executable file is in sub directory bin. Open a terminal in your Mac OS, and you are able to use the program.
A basic command line to encrypt a PDF is as follow
pdftoolbox in.pdf -outfile out.pdf -userpassword USER -key128bit
This command line encrypts the input PDF in.pdf with a 128-bit encryption user password USER and saves the protected PDF as out.pdf specified by option -outfile.
To restrict all the permissions except modifying by an owner password of 40-bit encryption, the command line is
pdftoolbox in.pdf -outfile out.pdf -ownerpassword OWNER -key40bit -permit modifycontents
There are more supported options, and you can see them by calling the program without any options and arguments to show the whole manual of PDF Encrypter Command Line. In sub directory test, there are also many examples showing the usages of the options.
Click the link to see
Features of PDF Encrypter Command Line.
Click the following link to buy a license for your PDF Encrypter Command Line.