We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How can I remove image shadow in python Word?

Hi, how can I remove the image shadow in Word Python SDK? Thanks.

@ZZZ21321 You can use ShadowFormat.clear() method to remove shadow effect of the shape. For example see the following code:

doc = aw.Document("C:\\Temp\\in.docx")

# Get the shape.
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()

# Remove shadow effect.
shape.shadow_format.clear()

doc.save("C:\\Temp\\out.docx")