Skip to main content
CarlosCanto
Community Expert
Community Expert
May 29, 2012 7:58 PM UTC
Question

Introducing: Insert Page Numbers v 2

Hi Everyone, back by popular demand, here's version 2. It now has options for inserting Date, Time, Full Name, and Document Name.

tip: you don't have to click on the "insert" buttons, you can type directly in the input box, for example, type:

Page *page* of *pages* to get Page 1 of 3

download

questions/comments? let me know

enjoy,

CarlosCanto

67 replies

bedroomcult
Participant
Sep 6, 2025 6:42 AM UTC

Thanks Carlos! I made some improvements based on this script. It can be found here:
https://github.com/bedroomcult/Page-Numbers-Illustrator

Translate
CarlosCanto
Community Expert
Community Expert
Sep 6, 2025 5:58 PM UTC

awesome, thanks sharing cult 🙂

Translate
Participant
Jan 21, 2025 10:36 AM UTC

Thank you, really helpful and saved me a lot of time on a project.

 

Translate
bedroomcult
Participant
Sep 6, 2025 6:41 AM UTC

Thanks Carlos. I made some improvements based from this script and can be found here:
https://github.com/bedroomcult/Page-Numbers-Illustrator


Translate
Participant
Nov 6, 2024 2:54 PM UTC

How can I start fron another page. like from 152(start the secnd part of the book) 

Translate
CarlosCanto
Community Expert
Community Expert
Nov 7, 2024 4:12 PM UTC

@BELECH2022 I didn't think about that when I wrote the script, I'll add that functionality when I have a chance

 

thanks

Translate
Participating Frequently
Jan 28, 2024 11:24 AM UTC

Thanku so much for your efforts

Translate
Participant
Apr 6, 2023 5:25 PM UTC

Any idea this numbering script can be modified in such a way that it prints two page number in one artboard?

I have a3 artboard where it is split to two pages.

I tried modifying the script all I get as result is p1 p2 

p2 p3 

p3 p4

in respective artboard.

Translate
Participating Frequently
Apr 7, 2023 6:32 PM UTC

Is it possible to split the artboard into two artboards for your project? 

Translate
Participant
Mar 29, 2023 4:18 PM UTC

Hey Carlos,

 

This Script has been a game changer! Thanks for putting it together all those years back and making it public.

I was wondering though,

Is there any way to utilize the tool only on specifically selected artboards?

 

Thanks!

Translate
CarlosCanto
Community Expert
Community Expert
Apr 8, 2023 8:34 PM UTC
quote

Is there any way to utilize the tool only on specifically selected artboards?

 

Thanks!


By @ELi Tully

 

It's not possible to know which artboards are selected in the Artboards panel, but I think a workaround would be to ask the user to provide a list of artboards the same way we print pages, ie 1, 3, 8, 10-12, etc

 

I know I've been saying I'll get to it when I have a chance, so I'll get to it when I have a chance.

Translate
Participant
Feb 8, 2023 6:47 AM UTC

Thank you....

 

Translate
Participant
Mar 24, 2019 11:27 PM UTC

Hi Carlos. First of all, your work is great.

I´m making a limited edition "secret things", and i´m searching for a feature to number automatically a limited edition badges.So, will be great if you can choose between "1 / 200" and "001 / 200" formats, filling with 0 on the left, and if you can choose to start in 0, or in 101...

Great job again.

Translate
CarlosCanto
Community Expert
Community Expert
Mar 26, 2019 6:41 AM UTC

hi niord, it sounds doable. I'll get to it as soon as I have a chance.

Translate
Participating Frequently
Aug 6, 2019 4:30 PM UTC

Carlos, I just discovered your script and it's amazing.

I have a little bit of experience coding myself so I've made modifications to it, but the one thing I can't figure out is editing the text. I've seen a bunch of people before ask to be able to modify font, color and size. I understand that you could just select the text boxes after generating them and style them the way you want, but for me I only need one thing.

Instead of the generic text being RGB, I need to default it to the "registration" color. I'm not seeing the string in the script that would allow me to modify that, probably because it's easier just to have it default-- Can you offer any guidance as to how I could modify your script to make the default text color [Registration]? Thank you in advance!!!!

Translate
fredrikj36572715
Participant
Nov 7, 2018 2:10 PM UTC

Thanks a lot for this great script!

I'm wondering two things though.

1. Is it possible to change the script so I can decide different X and Y coordinates for the placement?

2. Is it possible to change the font size of the text? (I would still like to keep my Illustrator default font size)

Any help would be greatly appreciated!

/Kind regards, Fredrik

Translate
fredrikj36572715
Participant
Nov 7, 2018 2:14 PM UTC

Ok, I found the answer to 1 by editing this line:

var fontSize = itext.textRange.characterAttributes.size = 5;

Translate
fredrikj36572715
Participant
Nov 7, 2018 2:49 PM UTC

Ok, I found a bit of an alternative solution for the 2nd one as well by experimenting and editing the row below:

var abright = iartBounds[2]-margins+120;

I believe writing as I did (fe 120) it sets it off by 120 pts. Not sure, but it works

Translate
Participant
Aug 10, 2017 7:46 AM UTC

Great script! Thank you so much!

I have some question: how can I change the color of text? Sometimes I got a dark background and I need light text on it! and how can I change the size of the text?

Translate
Monika Gause
Community Expert
Community Expert
Aug 10, 2017 8:02 AM UTC

THose are just default text objects. Style them to your desire.

Translate