borders property
PageSetup.borders property
Gets a collection of the page borders.
@property
def borders(self) -> aspose.words.BorderCollection:
...
Examples
Shows how to create green wavy page border with a shadow.
doc = aw.Document()
page_setup = doc.sections[0].page_setup
page_setup.borders.line_style = aw.LineStyle.DOUBLE_WAVE
page_setup.borders.line_width = 2
page_setup.borders.color = aspose.pydrawing.Color.green
page_setup.borders.distance_from_text = 24
page_setup.borders.shadow = True
doc.save(file_name=ARTIFACTS_DIR + 'PageSetup.PageBorders.docx')
See Also
- module aspose.words
- class PageSetup