JSON API - docxSettings
- 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
docxSettings
PREMIUM
TRIAL / ADVANCED
Modifies the general Word settings.
Note
You are reading the JSON API documentation. For the PHP API method please go to docxSettings.
JSON data
| Key | Description |
|---|---|
| autoHyphenation | |
| bookFoldPrinting | |
| bookFoldPrintingSheets | Number of pages per booklet. |
| bookFoldRevPrinting | |
| bordersDoNotSurroundFooter | |
| bordersDoNotSurroundHeader | |
| compat | Compatibility setting tags. |
| consecutiveHyphenLimit | Maximum number of consecutively hyphenated lines. |
| defaultTabStop | In twips (twentieths of a point). |
| defaultTableStyle | The table style to be used by default. |
| documentType | notSpecified (default), letter, eMail. |
| doNotHyphenateCaps | Do not hyphenate capital letters. |
| doNotShadeFormData | |
| gutterAtTop | |
| hideGrammaticalErrors | |
| hideSpellingErrors | |
| hyphenationZone | Distance in twips (twentieths of a point). |
| mirrorMargins | If true interchanges inside and outside margins in odd and even pages. |
| noPunctuationKerning | Never kern punctuation characters. |
| printTwoOnOne | Print two pages per sheet. |
| savePreviewPicture | Generate thumbnail for document on save. |
| trackRevisions | |
| updateFields | Automatically recalculate fields on open. |
| view | none (default), print, outline, masterPages, normal (draft view), web. |
| writeProtection | Enable readonly. |
| zoom | A percentage or none, fullPage (display one full page), bestFit (display page width), textFit (display text width). |
| customSetting | Custom settings. |
Code samples
Example #1
Release notes
- phpdocx 18.0:
- new action.
