Steve Canny

Results 120 comments of Steve Canny

@LunaticMaestro the file you referenced has character styling set using a character style, which is unfortunately not yet supported. However, text that is made bold or italic directly, using the...

Can you do it by hand in PowerPoint? If so then the XML format supports it. There's unlikely to be a feature added to `python-pptx` for this until someone wants...

Seeing if you can do it from the PowerPoint UI is a good start. If you can't that's a pretty strong indicator it's not supported and if you can it's...

IIRC there is a theme part, so it would be in the package, probably something like `ppt/theme.xml`. You could `unzip -l` a PPTX file to see if you see something...

Hi Ian, as I reflect on this feature a little more, I'm thinking it's a little specialized. What do you think about being able to do something like this instead?...

Only a `Part` subclass (like `SlidePart`) will have `.related_parts`. Use `Slide.part` to get the `SlidePart` object for that slide. Back in the early days, a slide and its part were...

Try leaving out the `namespaces=..` argument: `imgRID = imgPic.xpath('./p:blipFill/a:blip/@r:embed')[0]`

Should be: ``` image_part = slide.part.related_parts[imgRID] ``` I believe.

Pixel size is platform dependent. On *nix systems it is often 72 px/inch and on Windows I believe it is (or at least was) 96 px/inch. So you're on your...

Post the minimum reproducible example of the code you used that's not behaving as you expect. https://stackoverflow.com/help/minimal-reproducible-example