List¶
-
class
pdfpug.modules.
OrderedList
(items, **kwargs)¶ OrderedList is used to represent an ordered list of items in numerical order format.
Parameters: - items (List) – List items
- orientation (Orientation) – Orientation of list (defaults to
Orientation.vertical
) - size (Size) – Size (defaults to
Size.small
)
Instantiating a list is as simple as the following,
>>> from pdfpug.modules import OrderedList >>> chapters = OrderedList(['Introduction', {'Chapter 1': ['Header 1', 'Header 2']}])
-
class
pdfpug.modules.
UnorderedList
(items, **kwargs)¶ UnorderedList is used to represent an unordered list of items in bullet format.
Parameters: - items (List) – List items
- orientation (Orientation) – Orientation of list (defaults to
Orientation.vertical
) - size (Size) – Size (defaults to
Size.small
)
Instantiating a list is as simple as the following,
>>> from pdfpug.modules import UnorderedList >>> fruits = UnorderedList(['Apples', 'Oranges', 'Grapes'])