get page width, page height and margins (in inches). The return values are those corresponding to the section where the cursor is.
docx_dim(x)
x
an rdocx object
rdocx
docx_dim(read_docx())