Comments: I often use different word processors and text editing software at work. Most of the documents I have written are generated using popular options (especially those commonly used by Windows users), that is, "Print-> Save as PDF ". In many cases, I need to encrypt some personal PDF documents. Many tools, such as Adobe Acrobat, can be used to create PDF files.
I often use different word processors and text editing software at work. Most of the documents I have written are generated using popular options (especially those commonly used by Windows users), that is, "Print-> Save as PDF ". In many cases, I need to encrypt some personal PDF documents.
Many tools, such as Adobe Acrobat, can set passwords for PDF files, but I don't want to spend a few hundred dollars to buy these software. In addition, I am more independent and want to encrypt These PDF files in other ways.
In this article, I will explain in detail how to encrypt PDF files on mac OS X using the command line function that is available everywhere and the automation workflow.
I searched an article written by Masayuki Nii on the Internet using Google. He introduced a tool used on Mac OS X Tiger. It directly uses the development kit to set the password and permissions for the PDF file. This software package will install a command line function for pdfauxinfo, and the so-called "Add Aux info to PDF" Automator control, which is available under the PDF Control of The Automator tool.
I will discuss how to use Automator to create encrypted PDF files, and how to use the pdfauxinfo command line function. I suggest you use the Automator scheme, because this method can be easily integrated into a custom workflow.
Additional information: in addition to the encryption function described in this article, pdfauxinfo can also implement some additional functions, such as setting copy/print permissions and modifying PDF file authors, creators, and titles. You can see these functions on some of my listed ones.
After downloading and Uncompressing the package, the system will automatically install unzip auxinfo. The installation path is/usr/sbin/unzip auxinfo. Then, you can move it to any location, but note that automatic cannot be placed in any location as it is.
The -- help parameter displays Program Options:
500) this. width = 500 "title =" Click here to browse images in a new window "/>
Enter the following parameters to convert an existing file to an encrypted PDF version:
500) this. width = 500 "title =" Click here to browse images in a new window "/>
-I-> current PDF File
-O-> New encrypted file
-U-> password set by the user
Do not set-x (owner password) because this option only applies to permissions related to PDF files. If only the owner password is set to determine who is allowed to print, anyone can open the PDF file, but cannot print it.
Automation is a typical example of using program options available in different controls. As I have said before, it will automatically create an automatic control when installing the program. Like this:
500) this. width = 500 "title =" Click here to browse images in a new window "/>
Fill in the necessary information. In this example, you only need to enter the user password. This is very simple, but we need to fill in a lot of other information when using the Automator control.
Because the control requires a file/folder input value, the best way is to put "Get Advanced Search items" or "request search items. I usually use the previous method. In this method, you can select multiple files from many PDF files in different locations.
You can combine these two controls in a workflow. However, based on my experience, we still need to do one thing. After the "get advanced search options" and "Add AUX information to PDF" are combined, all newly created encrypted PDF files are automatically placed in the/tmp folder on the computer. We recommend that you add "more search options" as a third-party control, so you get the following workflow:
500) this. width = 500 "title =" Click here to browse images in a new window "/>
The workflow uses a password to protect the selected PDF files and move these files to your specified location. The only obstacle I encountered in this process is that you cannot specify the name of the output file if you use the Automator control. If you think you can solve this problem by enabling the "replace existing files" confirmation box in "mobile search projects", you will be wrong; this is just a mobile control. The name of the output file is random, such as auxinfo.k365vaq6.pdf. It is very likely that there is an automatic or control, which can get the name of the file and modify it, but I didn't use it.
Access encrypted PDF files
Preview the newly created encrypted file:
500) this. width = 500 "title =" Click here to browse images in a new window "/>
500) this. width = 500 "title =" Click here to browse images in a new window "/>
Open the new encrypted file with Adobe Reader 8.1.0:
500) this. width = 500 "title =" Click here to browse images in a new window "/>
500) this. width = 500 "title =" Click here to browse images in a new window "/>
Open the new encrypted file with Adobe Reader 8.1.0 in Microsoft's Vista system:
500) this. width = 500 "title =" Click here to browse images in a new window "/>
500) this. width = 500 "title =" Click here to browse images in a new window "/>
The above is a free method for creating encrypted PDF files on Mac OS X Tiger.