I'm doing a custom table of content for slides that is generated by Python-PPTX. For the slides, footer and slide numbers already set up, and I can already view it in resulting PPTX. I believe slide numbers already exist, just needed to be read.
My question is, whether the slide number information is accessible from slide object, or perhaps somewhere else? Overall script looks like this:
from pptx import Presentation
prs = Presentation()
for x in 'abc':
s = prs.slides.add_slide(prs.slide_layouts[6])
if x=='b':
s.placeholders[0].text = <str: page number of current slide 's'>