JustificationMode enumeration

JustificationMode enumeration

Specifies the character spacing adjustment for a document. The default value is Expand.

Members

NameDescription
EXPANDDo not compress character spacing.
COMPRESSCompress character spacing.
COMPRESS_KANACompress, using rules of the kana syllabaries, Hiragana and Katakana.

Examples

Shows how to manage character spacing control.

doc = aw.Document(file_name=MY_DIR + 'Document.docx')
justification_mode = doc.justification_mode
if justification_mode == aw.settings.JustificationMode.EXPAND:
    doc.justification_mode = aw.settings.JustificationMode.COMPRESS
doc.save(file_name=ARTIFACTS_DIR + 'Document.SetJustificationMode.docx')

See Also