Hello,
there is no separate command for page numbers, but you can apply an output profile with page numbers on the command line:
- In PDF24 Creator, open "Tools > Output profiles", click "New", enable "Use page numbers" in the section "Page Numbers" (the pattern, e.g.
{NUM} / {COUNT}, and the position can be set there) and save the profile under a name, e.g. PageNumbers.
- Apply this profile with the PDF24 DocTool:
"C:\Program Files\PDF24\pdf24-DocTool.exe" -applyProfile -profile user/PageNumbers -outputFile "C:\Target\file.pdf" "C:\Source\file.pdf"
The profile name after user/ must be written exactly as in the profile manager. Description of the options: https://creator.pdf24.org/manual/11/#1114-apply-a-profile-to-input-files
For single files this also works online: https://tools.pdf24.org/en/add-page-numbers-to-pdf