JSON API - modifyPageLayout
- 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
modifyPageLayout
PREMIUM
TRIAL / ADVANCED
Modifies the Word document layout.
Note
You are reading the JSON API documentation. For the PHP API method please go to modifyPageLayout.
JSON data
| Key | Description |
|---|---|
| paperType |
|
| height | Section height in twips. |
| width | Section width in twips (twentieths of a point). |
| marginTop | Top margin for this section in twips. |
| marginRight | Right margin for this section in twips. |
| marginBottom | Bottom margin for this section in twips. |
| marginLeft | Left margin for this section in twips. |
| marginHeader | Header margin in twips. |
| marginFooter | Footer margin in twips. |
| numberCols | Number of columns for this section. |
| orient | Section page orientation (portrait or landscape). |
| gutter | Gutter in twips (used for binding). |
| vAlign | Vertical alignment (top, center, both, bottom) |
| bidi | Set to true for right to left languages. Default as false. |
| rtl | Set to true for right to left languages. Default as false. |
| excludeHeadersAndFooters | If true, exclude headers and footers reference tags. Default as false. |
| pageNumberType |
|
| columns |
|
| endnotes |
|
| footnotes |
|
Code samples
Example #1
Release notes
- phpdocx 18.0:
- new action.
