Copy link to clipboard
Copied
Hello,
I have a file with around 500 pages. Would like to put a page numbers on each page however every number is in different place on each page (going from up to the bottom - so for example number 1 on first page is up up, and number 2 on second page a bit lower, number 3 on third page even more lower then on second page etc.) is it a way to automatize it? Maybe someone know some script how to do it? or maybe in photoshop?
The only way I can think of to do this without a script would be to create a series of Parent pages with the page number marker moving down the page in the required progression, then assigning the correct parent pages in order to the document pages.
To say the least this is probably more cumbersome than simply manually postioning the markers on the document pages to begin with unless you need to repeat the pattern multiple times in a long document.
Copy link to clipboard
Copied
The only way I can think of to do this without a script would be to create a series of Parent pages with the page number marker moving down the page in the required progression, then assigning the correct parent pages in order to the document pages.
To say the least this is probably more cumbersome than simply manually postioning the markers on the document pages to begin with unless you need to repeat the pattern multiple times in a long document.
Copy link to clipboard
Copied
Thank you 🙂
makes sense
Copy link to clipboard
Copied
This could probably be automated in several ways, but by the time that much effort is expended, you could simply place all the numbers manually.
If the text frame height is 10 inches, that's 720 points, so each frame should have the top margin increased by 1.44 points. You can probably choose layout scale that makes this easier, in rounded numbers at least. Any calculator should be able to generate an iterative total* so all you have to do is:
This process could probably be automated with a script, but even manually, it's no more than about 30 minutes of work. Quicker than hours to work up an automated solution that works precisely.
* The Windows calculator, for example. Enter + 1.44. Every time you tap Enter, the value will be increased by 1.44.
—
Copy link to clipboard
Copied
[Just For Comment: paid Script I wrote in 2018 for US editors]
Comment mentioned in the Script:
Best,
(^/) The Jedi
Copy link to clipboard
Copied
You gotta be kiddin' me. 😄
—
Copy link to clipboard
Copied
I was thinking of making a video but processing 500 pages only takes less than 3 sec. after clicking on the Script! …
(^/) 😉
Copy link to clipboard
Copied
Hi @Sonia5C3A, Try selecting the auto page number on your master and run this script. If it is facing pages run the script twice once for the left and once for the right masterpage:
app.scriptPreferences.measurementUnit = MeasurementUnits.POINTS;
var doc = app.documents.item(0);
var h = doc.documentPreferences.pageHeight;
var ps = doc.selection[0];
var pgs = doc.pages.everyItem().getElements();
var b = ps.geometricBounds;
var y = b[0]
var th = b[2]-b[0];
var md = h-(y*2)-th;
var ma = md/(pgs.length)
var cnt = 1;
var mpi, pn;
for (var i = 0; i < pgs.length; i++){
mpi = pgs[i].masterPageItems
for (var j = 0; j < mpi.length; j++){
if (mpi[j].id == ps.id) {
pn = mpi[j].override(pgs[i]);
pn.move( [ 0 , 0 ] , [ 0 , ma * cnt ] );
}
};
cnt++
};
app.scriptPreferences.measurementUnit = AutoEnum.AUTO_VALUE;
Copy link to clipboard
Copied
Here’s the saved script with a 500 page test document:
https://shared-assets.adobe.com/link/b6ae006b-3873-4e02-604b-8fccd8da6538