Paragraph

Overview

Paragraph is a class in Aspose.PDF FOSS for Python.

One paragraph: what it says, and how it differs from the block.

This class declares 1 method for Paragraph objects in Python programs. Available methods include: __post_init__. Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: alignment, first_line_indent, font_name, font_size, keep_together, keep_with_next, and 10 more.

Properties

NameTypeAccessDescription
textstrRead/WriteGets or sets the text.
alignmentstr | NoneRead/WriteGets or sets the alignment.
font_namestr | NoneRead/WriteGets or sets the font name.
font_sizefloat | NoneRead/WriteGets or sets the font size.
text_colorAnyRead/WriteGets or sets the text color.
line_heightfloat | NoneRead/WriteGets or sets the line height.
space_beforefloatRead/WriteGets or sets the space before.
space_afterfloatRead/WriteGets or sets the space after.
first_line_indentfloat | NoneRead/WriteGets or sets the first line indent.
left_indentfloatRead/WriteGets or sets the left indent.
right_indentfloatRead/WriteGets or sets the right indent.
tagstr | NoneRead/WriteGets or sets the tag.
keep_togetherboolRead/WriteGets or sets the keep together.
widow_linesint | NoneRead/WriteGets or sets the widow lines.
orphan_linesint | NoneRead/WriteGets or sets the orphan lines.
keep_with_nextboolRead/WriteGets or sets the keep with next.

Methods

SignatureDescription
__post_init__()Calls post_init on this Paragraph instance.

See Also