__init__ constructor
Leave feedback
On this page
Initializes a new instance of Line.
def __init__(self):
...
Initializes a new instance of the Line class.
def __init__(self, line, x, y, width, height, words):
...
| Parameter | Type | Description |
|---|---|---|
| line | str |
The line. |
| x | float |
The X coordinate of the highest left point on the page layout where the rectangle that contains line begins. |
| y | float |
The Y coordinate of the highest left point on the page layout where the rectangle that contains line begins. |
| width | float |
The width of the rectangle which contains the line (in pixels). |
| height | float |
The height of the rectangle which contains the line (in pixels). |
| words | List[Word] |
The words contained by the line. |
| Raises | Description |
|---|---|
ValueError |
Raised when line is null or empty, or when words is null. |
- class
Line
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.