We are using SAP. We have email programs to convert smart form to PDF (through OTF) and send email to customers. My requirement is this pdf attachment should password protected at the time of OTF conversion. This programs are running in background in SAP on Suse Linux. In every run hundreds of emails triggered on regular intervals.
There is any solution in "verypdf", without download into local PC/ application server for protection.
1. Java PDF Toolkit (jpdfkit)
Java PDF Toolkit (jpdfkit) is a .jar application, you can call it from your code using Command Line operation, such as,
-- Encrypt a PDF using 128-bit strength
java -jar jpdfkit.jar sample_verypdf.pdf output _encrypted.128.pdf owner_pw 123
-- Set both owner password and open password to a PDF file
java -jar jpdfkit.jar sample_verypdf.pdf output _encrypted_both.pdf owner_pw 456 user_pw 123
-- Enable High Quality Printing when encrypt a PDF file
java -jar jpdfkit.jar sample_verypdf.pdf output _encrypted_highprinting.pdf owner_pw 456 user_pw 123 allow printing
2. VeryPDF PDF Toolbox Shell for Linux
pdftoolbox sample_in1.pdf -outfile "_ownerpassword.pdf" -ownerpassword 123 -key40bit
pdftoolbox sample_in1.pdf -outfile "_permit_secure.pdf" -ownerpassword 123 -key128bit -permit printing modifyannot
pdftoolbox sample_in1.pdf -outfile "_userpassword.pdf" -ownerpassword 123 -userpassword 456 -key128bit
3. PDF Toolkit Command Line Tools & Utilities
PDF Toolkit Command Line gives you a wide range of professional, robust tools to modify PDF files manually from the command line, from scripts or within programs. It can be run on Windows, Mac and Linux systems, however, we have only trial version for Windows currently, the trial versions for Mac and Linux systems are not available currently.
If you encounter any problem with above products on the Linux system, please feel free to let us know, we will assist you asap.