Add page numbers to a PDF via command line

Home › Forums › PDF24 Creator › Add page numbers to a PDF via command line

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #63504
    kazim
    Participant

    how can page numbers can be inserted via command line?

    #65476
    PDF24 Support
    Moderator

    Hello,

    there is no separate command for page numbers, but you can apply an output profile with page numbers on the command line:

    1. 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.
    2. 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.