Hi,
I would like to create a very specific page numbering on my slides.
I would like to use Apps Scipt for this
But I find few sources
I can't get the position of a slide in the presentation?
There is an AutoText Class but I can't find any example to use it
Can you help me?
Thanks
Solved! Go to Solution.
This will work
function slidePageNumber() {
let current = SlidesApp.getActivePresentation().getSelection().getCurrentPage().getObjectId();
const pages = SlidesApp.getActivePresentation().getSlides();
for(let i = 0 ; i < pages.length ; i++){
if(pages[i].getObjectId() == current){
console.log(i+1)
return ;
}
}
}
Stรฉphane