Skip to content

word document set

zmworm edited this page Mar 18, 2026 · 56 revisions

Word: Document - set

Set document-level metadata and page setup properties.

Path: /

Properties

Property Accepted Values Description
title text Document title
author / creator text Author name
subject text Subject
keywords text Keywords
description text Description
category text Category
lastModifiedBy text Last modifier
revision text Revision number
defaultFont font name Default document font
pageBackground / background hex color Page background
pageWidth integer (twips) Page width
pageHeight integer (twips) Page height
marginTop integer (twips) Top margin
marginBottom integer (twips) Bottom margin
marginLeft integer (twips) Left margin
marginRight integer (twips) Right margin

Examples

officecli set report.docx / --prop title="Annual Report" --prop author="Finance Team"
officecli set report.docx / --prop pageWidth=12240 --prop pageHeight=15840
officecli set report.docx / --prop marginTop=1440 --prop marginBottom=1440
officecli set report.docx / --prop defaultFont="Times New Roman"

Based on OfficeCli v1.0.6

Clone this wiki locally