We are evaluating your product since it says it can do command-line password protecting of PDFs.
We downloaded the product and tried it, but it did not restrict the opening of the output (supposedly password protected) PDF
This was the command we gave it:
pdftools -i filename.PDF -o filename_locked.PDF -S userpwd=abc -S keylen=2
It ran (with giving a message that an evaluation only process first half of pages)
but the resulting file filename_lockled.PDF opens WITHOUT the need of a password.
Are we doing something wrong on teh command line?
Customer
-----------------------------------------------------

Thanks for your message, we suggest you may download "VeryPDF PDF Toolbox Command Line for Windows" from this web page to try, "VeryPDF PDF Toolbox Command Line for Windows" works better than pdftools Command Line application,
https://www.verypdf.com/app/pdftoolbox/try-and-buy.html#buy
https://www.verypdf.com/dl.php?file=pdftoolbox_cmd_win.zip
after you download it, you can run following command line to encrypt your PDF file,
Encrypt a PDF using 128-bit strength:
pdftoolbox 1.pdf -outfile 1.128.pdf -ownerpassword foopass
Set an owner password and an user password to a PDF file:
pdftoolbox 1.pdf -outfile out.pdf -ownerpassword opwd -userpassword upwd
Enable High Quality Printing when encrypt a PDF file:
pdftoolbox 1.pdf -outfile out.pdf -ownerpassword opwd -userpassword upwd -permit printing
You may also look at following web page for more information about PDFToolbox Command Line software,
https://www.verypdf.com/wordpress/201505/pdftoolbox-command-line-options-encrypt-pdf-files-cross-merge-pdf-files-overlay-stamp-and-watermark-pdf-files-41661.html
VeryPDF
Related Posts
- VeryPDF PDF SDK for Developers: Built for Developers, Trusted by Enterprises! Powerful PDF Toolkit for Developers to Edit, Convert, Sign, Secure, and Automate PDF Documents
- Differences Between Encrypt PDF Command Line and Encrypt PDF COM Component for Server-Side Integration
- How to Secure Your PDF Files with 128-bit AES and 256-bit AES Encryption Using VeryPDF PDF Security and Signature
- How to enable High Quality Printing and disable other options in VeryPDF Advanced PDF Tools Command Line?
- [Solution] VeryPDF Custom-built Smart Redact Server: AI-Powered PDF Redaction for Businesses
- VeryPDF OCR Server – High Accuracy OCR Software for Enterprise Document Conversion, PDF/A Archiving, and Automated Batch Scanning
- Introducing VeryPDF PDF Viewer SDK: Powerful PDF Viewer, Annotation, and Form Filling SDK for Web Applications and Document Collaboration
- How to Convert an Editable PDF with Variable Data into a Static PDF: A Step-by-Step Guide
- How to Save a Password-Protected PDF Without Requiring a Password
- How to Open a PDF by Clicking on It Instead of Using the File > Open Menu
- PDF Form Filling & Flattening, Fill and Flatten PDF Forms
- Add bookmarks into a PDF file from merge PDF files
- Encrypt PDF Using 128-bit by PDF Toolbox Windows Version
- pdftoolbox: error while loading shared libraries: libgcj.so.7rh: cannot open shared object file: No such file or directory External program terminated with exit code 127
- How to cross merge PDF file?