Author Topic: Batch rename including page number  (Read 5395 times)

0 Members and 1 Guest are viewing this topic.

P. Allan

  • Newbie
  • *
  • Posts: 3
Batch rename including page number
« on: March 26, 2014, 03:19:11 PM »
On the Pdf info tab You can see the column "Pages", showing the number of pages in the pdf's.

Is there a way to use this parameter in the "Batch Rename" tool?

E.g. renaming "File_1.pdf" to "File_1-6 pages.pdf".

RTT

  • Administrator
  • *****
  • Posts: 907
Re: Batch rename including page number
« Reply #1 on: March 26, 2014, 04:45:32 PM »
I see I need to add number of pages as a directly accessible property. :)
But right now you can do it with a script, like this in JScript.
Code: [Select]
function NumPagesStr() {
    return BatchFile.NumPages;
}
Don't forget to name the script with the same name of the function, in this example "NumPagesStr". To use it, you just refer to this name in the rename formula, as in the attached screenshot.