是否可以使用 Office JavaScript 加载项更改页面设置?

Is it possible to change page setup using Office JavaScript AddIn?

我需要使用 Word 控制 Word 文档页面设置 JavaScript AddIn.There 无法直接 API 实现此目的。我尝试使用insertOoxml替换文档内容,但是w:pgMar被忽略了。

有可能吗? context.document.body.style 可以用于该目的吗?我在哪里可以获得 style 值的正确值?

API 不支持此功能。请确保您 ask/vote 在 https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/category/163566-add-in-word

中为此

谢谢!