JSON API - docxSettings

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.