XML API - pdx:setLineNumbering
- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- docxSettings
- importHeadersAndFooters
- importListStyle
- importStyles
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- addBookmark
- addBreak
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOnlineVideo
- addPageNumber
- addShape
- addSimpleField
- addStructuredDocumentTag
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteBlock
- modifyInputFields
- processTemplate
- rawSearchAndReplace
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
pdx:setLineNumbering
Inserts line numbering into an already existing Word document.
Note
You are reading the XML API documentation. For the PHP API method please go to setLineNumbering.
Description
Element definition
This method allows the insertion or modification of line numbering properties of an existing Word document in .docx format.
The available options include:
- Line number increments to display.
- Start number.
- Distance between line numbers and text.
- Restarting conditions: continuous or restarted in each new document page or section.
Attributes and sub-elements
options
This is an array including all the available styling options. The possible keys and values of this array are:
Key | Description |
---|---|
countBy | An integer indicating the line number increments to display. If left empty is set to 1. |
start | An integer indicating which number must be associated with the first line. The default value is 1. |
distance | An integer indicating the distance, in twentieths of a point, between the number and the associated line. If left empty is dealt automatically by Word. |
restart | A string that can take the following values:
|