title: Python PPTX read slide number (page number)
body: <p>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.</p>
  
  <p>My question is, whether the slide number information is accessible from slide object, or perhaps somewhere else? Overall script looks like this:</p>
  
  <pre><code>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 = &lt;str: page number of current slide 's'&gt;
  </code></pre>