Apryse's PDFSecure is a command-line application designed to add, remove, or change security settings on existing PDF documents or whole directories of documents. PDFSecure can also be used to modify document information metadata and to web-optimize files through a process known as linearization. This section covers the basic use of PDFSecure explaining all the available options.
The basic command-line syntax is:
pdfsecure [options] file1 file2 folder1 file3 ...
See more options in:
Notes:
pdfsecure -o test_out/ex1/blue_secret.pdf -s 128 -u secret test/blue.pdf
Notes:
pdfsecure -o test_out/ex2 -s AES -u secret test
Notes:
pdfsecure -o test_out/ex3/r1.pdf -s 128 -u userpass -w ownerpass -d a test/red.pdf
Notes:
pdfsecure -o test_out/ex4 -s 128 -w foo -d mcofxs -e ph --subfolders test
pdfsecure -o test_out/ex4/out2.pdf -s 128 -w foo -d ms -e cox test/red.pdf
Notes:
pdfsecure -o test_out/ex5 -s R test test_out/ex4/out2.pdf
pdfsecure -o test_out/ex5 -s R test test_out/ex4
pdfsecure -o test\_out/ex5/ex3r1.pdf -s R -p userpass test_out/ex3/r1.pdf
pdfsecure -o test_out/ex5 -s R -p secret test_out/ex2/test --subfolders
pdfsecure -o test_out/ex5/e1.pdf -s R -p secret test_out/ex1/blue_secret.pdf
Notes:
pdfsecure -o test_out/ex6 --title "My Title" --subject "My Subject" --creator "Source App" --producer "PDFSecure" --author "Joe Doe" --keywords "key1 key2 key3" test
Notes:
pdfsecure -o test_out/ex7 -l test_out/ex6
Notes:
pdfsecure -o test_out/ex8 -l --title "My Title" --subject "My Subject" --creator "SourceApp"- producer "PDFSecure" --author "Joe Doe" --keywords "key1 key2 key3" -s AES -u userpass -w ownerpass -d chsmx -e of test
The above command-line:
PDFSecure supports processing of multiple input documents in the same run. For example, it is possible to specify multiple PDF folders and PDFSecure will automatically process all PDF documents matching a given file extension. For example, the following command-line will process all PDF documents in folders 'test1' and 'test2'
c:\>pdfsecure -o c:/output_folder -s 128 -u secret c:/test1 c:/test2
Wildcard characters can also be used to process multiple input files.
For example, if a directory contains the following PDF documents:
To process all PDF documents in this folder, you could specify:
pdfsecure -o c:/output_folder -s 128 -u secret c:/test1/*.pdf
To process all PDF documents starting with 'A', you could specify:
pdfsecure -o c:/output_folder -s 128 -u secret c:/test1/A*.pdf
Or to process all PDF documents ending with '1', you could specify:
pdfsecure -o c:/output_folder -s 128 -u secret c:/test1/*1.pdf
You can use either of the two standard wildcards --- the question mark (?) and the asterisk (*) --- to specify filename and path arguments on the command line.
The wildcards are expanded in the same manner as operating system commands. (Please refer to your operating system user's guide if you are unfamiliar with wildcards). Enclosing an argument in double quotation marks (" ") suppresses the wildcard expansion. Within quoted arguments, you can represent quotation marks literally by preceding the double-quotation-mark character with a backslash (\). If no matches are found for the wildcard argument, the argument is passed literally.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales