Get page width, page height and margins (in inches). The return values are those corresponding to the section where the cursor is.
See also
Other functions for Word document informations:
doc_properties()
,
docx_bookmarks()
,
length.rdocx()
,
set_doc_properties()
,
styles_info()
Examples
docx_dim(read_docx())
#> $page
#> width height
#> 8.263889 11.694444
#>
#> $landscape
#> [1] FALSE
#>
#> $margins
#> top bottom left right header footer
#> 0.9840278 0.9840278 0.9840278 0.9840278 0.4916667 0.4916667
#>