PageSetup.border_distance_from property. Gets or sets a value that indicates whether the specified Page border is measured from the edge of the Page or from the text it surrounds....specified page border is measured from the edge of the page or from...of the first page. doc = aw . Document () page_setup = doc ....