Open mszbot opened 2 years ago
Problem: Cannot read a slide's background colour if it was set at slide layout level (not slide master level).
slide layout
Code below returns a error: slide.slide_layout.background.fill.fore_color.rgb
slide.slide_layout.background.fill.fore_color.rgb
Error: TypeError: fill type _NoFill has no foreground color, call .solid() or .patterned() first
TypeError: fill type _NoFill has no foreground color, call .solid() or .patterned() first
To repro: Try to read the 2nd slide's background colour which is set at slide layout level: slidebackground tests.pptx
Key question: How would you find this in the XML?
Problem: Cannot read a slide's background colour if it was set at
slide layout
level (not slide master level).Code below returns a error:
slide.slide_layout.background.fill.fore_color.rgb
Error:
TypeError: fill type _NoFill has no foreground color, call .solid() or .patterned() first
To repro: Try to read the 2nd slide's background colour which is set at slide layout level: slidebackground tests.pptx