add_section#

AnsysReport.add_section(portrait: bool = None, page_format: str = 'a4') None#

Add a new section to Pdf.

Parameters:
portraitbool, optional

Section orientation. Default True for portrait.

page_formatstr, optional

Currently supported formats are a3, a4, a5, letter, legal or a tuple (width, height).

Returns:
int,

Section id.

Examples

>>> from ansys.aedt.core.visualization.plot.pdf import AnsysReport
>>> obj = AnsysReport()
>>> obj.add_section()