https://creator.pdf24.org/manual/11/#111-command-line
pdf24-DocTool.exe -applyProfile [-profile profileId] [-profileParam key value] [-outputDir dir] [-outputFile file] file1 [file2] ...
Vorher ein Profil anlegen und dort die Sicherheitseinstellungen einstellen. Dann kann man das Profil über den Namen "user/yyy" wobei yyy der Name des Profils ist. Das Kommando könnte dann so aussehen:
pdf24-DocTool.exe -applyProfile -profile user/yyy -outputFile OUTPUT_FILE INPUT_FILE
Über [-profileParam key value] könnte man das Passwort zudem auch noch mitgeben oder man nutzt die Prompt-Funktion des Profils, z.b. so:
pdf24-DocTool.exe -applyProfile -profile user/yyy -profileParam pdf-userPass PASSWORD -outputFile OUTPUT_FILE INPUT_FILE