remove method
remove()
Removes SoftEdgeFormat from the parent object.
def remove(self):
...
Examples
Shows how to work with soft edge formatting.
builder = aw.DocumentBuilder()
shape = builder.insert_shape(shape_type=aw.drawing.ShapeType.RECTANGLE, width=200, height=200)
# Apply soft edge to the shape.
shape.soft_edge.radius = 30
builder.document.save(file_name=ARTIFACTS_DIR + 'Shape.SoftEdge.docx')
# Load document with rectangle shape with soft edge.
doc = aw.Document(file_name=ARTIFACTS_DIR + 'Shape.SoftEdge.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
soft_edge_format = shape.soft_edge
# Check soft edge radius.
self.assertEqual(30, soft_edge_format.radius)
# Remove soft edge from the shape.
soft_edge_format.remove()
# Check radius of the removed soft edge.
self.assertEqual(0, soft_edge_format.radius)
Shows how to set limit for image resolution.
doc = aw.Document(file_name=MY_DIR + 'Rendering.docx')
save_options = aw.saving.SvgSaveOptions()
save_options.max_image_resolution = 72
doc.save(file_name=ARTIFACTS_DIR + 'SvgSaveOptions.MaxImageResolution.svg', save_options=save_options)
See Also
- module aspose.words.drawing
- class SoftEdgeFormat