addProperties
- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addPageBorders
- addProperties
- addSection
- createDocx
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- importHeadersAndFooters
- importStyles
- modifyPageLayout
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- setRTL
- addBibliography
- addBookmark
- addBreak
- addChart
- addCitation
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOLE
- addPageNumber
- addShape
- addSimpleField
- addSource
- addStructuredDocumentTag
- addTable
- addTableContents
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteTemplateBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- tickCheckbox
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. |