max_characters_per_line property

TxtSaveOptions.max_characters_per_line property

Gets or sets an integer value that specifies the maximum number of characters per one line. The default value is 0, that means no limit.

@property
def max_characters_per_line(self) -> int:
    ...

@max_characters_per_line.setter
def max_characters_per_line(self, value: int):
    ...

Examples

Shows how to set maximum number of characters per line.

doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
builder.write('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ' + 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.')
# Set 30 characters as maximum allowed per one line.
save_options = aw.saving.TxtSaveOptions()
save_options.max_characters_per_line = 30
doc.save(file_name=ARTIFACTS_DIR + 'TxtSaveOptions.MaxCharactersPerLine.txt', save_options=save_options)

See Also