Skip to main content
Participant
April 4, 2025
Question

Adding page numbers with command line being called from other Software

  • April 4, 2025
  • 2 replies
  • 292 views

We are using a LIMS to generate a specific report. However, the report software (Crystal Reports) is unable to correctly add page numbers, as the report contains cross tab tables that will span > 2 pages. Is there a way via the command line to call Adobe Acrobat Pro to edit the pdf and add the page numbers? With a user interacting with the Acrobat, there are pagination functions available to add the page number and total pages, i.e. Page X of Y.  We plan to apply this soltuion on a server so multiple users generating the reports from the LIMS would all have the same functionality. Thanks for the help

2 replies

try67
Community Expert
Community Expert
April 4, 2025

Not with Acrobat (which you also can't run on a server at all, legally), but it is possible using other tools.

 

If you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on the blue "Message" button.

Amal.
Legend
April 4, 2025

Hi there,

Hope you're doing well, and thanks for reaching out.

Adobe Acrobat Pro has great tools for adding page numbers when you're working with it directly. But if you're looking to automatically add “Page X of Y” using the command line on a server, things get a bit tricky.

The Acrobat SDK supports JavaScript inside PDFs and plug-ins, but these still need Acrobat to be open and running — they’re not meant to run on their own in the background or through command-line on a server.

One option you could try is the Action Wizard in Acrobat. It lets you create automated tasks, like adding page numbers to multiple PDFs in a folder. Just keep in mind, it still needs Acrobat to be open — so it’s not fully automatic, but it can reduce manual work.

If your team is open to cloud-based tools, Adobe offers the PDF Services API, which is perfect for automating PDF tasks (like page numbering) on a server. It works well in custom workflows and doesn’t require Acrobat to be open. You can check it out here: Adobe PDF Services API

Hope this helps.