hi there,
First a quick sorry, I wanted to start a discussion rather than a new issue, but I don't know how to do that on github, because i am #newbie.
Anyways, I was working with a presentation and ran the code:
prs=Presentation("my.pptx")
slide=prs.slides[0]
shape=slide.shapes[0]
frame=shape.text_frame
pa=frame.paragraphs[0]
ru=pa.runs[0]
ru.font.size
This returns None. I googled around and @scanny mentioned it's because this comes from the parent, but I followed it up as far as text_frame but font.size == None.
Again more research reveals this is because it comes from the parent styles of the presentation, which is not supported? Is this stored in the zip file of the pptx file and simply not yet processed by the program? Or is this embbedded in PPTX and thus unavailable.
This being the case is it worth having a filler object, like pptx.NULLFONT which works as a filler or some such? I suppose None works just as well here.
Thoughts are appreciated.
hi there,
First a quick sorry, I wanted to start a discussion rather than a new issue, but I don't know how to do that on github, because i am #newbie.
Anyways, I was working with a presentation and ran the code:
prs=Presentation("my.pptx")
slide=prs.slides[0]
shape=slide.shapes[0]
frame=shape.text_frame
pa=frame.paragraphs[0]
ru=pa.runs[0]
ru.font.size
This returns None. I googled around and @scanny mentioned it's because this comes from the parent, but I followed it up as far as text_frame but font.size == None.
Again more research reveals this is because it comes from the parent styles of the presentation, which is not supported? Is this stored in the zip file of the pptx file and simply not yet processed by the program? Or is this embbedded in PPTX and thus unavailable.
This being the case is it worth having a filler object, like pptx.NULLFONT which works as a filler or some such? I suppose None works just as well here.
Thoughts are appreciated.