JSON API - addPageBorders
- addBarcode
- addBookmark
- addBreak
- addCaption
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addDropCap
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addPageNumber
- addRuby
- addSimpleField
- addStructuredDocumentTag
- addSVG
- addTab
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- addWordFragment
- embedHTML
- addBackgroundImage
- addFooter
- addFooterSection
- addHeader
- addHeaderSection
- addLineNumbering
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- modifyPageLayout
- removeFooters
- removeHeaders
- setBackgroundColor
- setCompatibilityMode
- setDefaultFont
- setDocumentDefaultStyles
- setLanguage
- setMarkAsFinal
- setRTL
- clearBlocks
- cloneBlock
- deleteBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- removeTemplateVariableImage
- replaceBlock
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHTML
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
- tickCheckboxes
addPageBorders
PREMIUM
TRIAL / ADVANCED
Adds custom page borders to the Word document.
Note
You are reading the JSON API documentation. For the PHP API method please go to addPageBorders.
JSON data
| Key | Description |
|---|---|
| display |
|
| borderColor | Hexadecimal color ("000000" (default), "FF0000" ...). |
| borderSpace | Border spacing in points (default is 24). |
| borderStyle | It can be none, single (default), double ... See, for example, https://www.datypic.com/sc/ooxml/t-w_ST_Border.html for a complete list of border available styles. |
| borderWidth | Page border width in eigths of a point (default value is 4). |
| border<Side>Color | Hexadecimal color ("000000" (default), "FF0000" ...). <side> stands for Top, Right, Left or Bottom. |
| border<Side>Spacing | Border spacing in points (default is 24). <side> stands for Top, Right, Left or Bottom. |
| border<Side>Style | It can be none, single (default), double ... See, for example, https://www.datypic.com/sc/ooxml/t-w_ST_Border.html for a complete list of border available styles <side> stands for Top, Right, Left or Bottom. |
| border<Side>Width | Page border width in eigths of a point (default value is 4). <side> stands for Top, Right, Left or Bottom. |
| offsetFrom | Possible values are: "page" or "text". |
| zOrder | Sets the z-index of the border. |
Code samples
Example #1
Release notes
- phpdocx 18.0:
- new action.
