__init__ constructor
Leave feedback
On this page
Initializes a new instance of Line.
def __init__(self):
...
Initializes a new Line instance.
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 the line begins. |
| y | float |
The Y coordinate of the highest left point on the page layout where the rectangle that contains the 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 |
If 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.