addProperties

addProperties

BASIC / ADVANCED / PREMIUM

Modifies the document properties.

Description
public void addProperties(OptionsProperties options)

This method modifies the properties of the Word document.

With this method it is possible to modify/add the document:

  • title
  • subject
  • author (creator)
  • keywords
  • description
  • category
  • contentStatus (final, draft...)
  • created, modified
  • lastModifiedBy
  • Manager
  • Company
  • custom properties (name, type and value)

To modify the layout properties you should use modifyPageLayout method instead.

Parameters

options

Option Type Description
title String The title of the document.
subject String The subject of the document.
creator String The document author or creator.
keywords String A list of keywords that may be separated by any character you wish.
description String The description of the document.
category String The category to which you want to associate the document.
Manager String The name of the associated Manager.
Company String The company name.
contentStatus String The current status of the document: final, draft...
created String The created date (W3CDTF without time zone).
modified String The modified date (W3CDTF without time zone).
lastModifiedBy String The username that modified the document.
custom ArrayList<HashMap<String, String>> Custom properties.
Code samples

Example #1

The resulting Word document looks like: