DocumentFigure Class
An object representing a figure in the document.
Constructor
DocumentFigure(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
bounding_regions
|
Bounding regions covering the figure. |
|
spans
|
Location of the figure in the reading order concatenated content. Required. |
|
elements
|
Child elements of the figure, excluding any caption or footnotes. |
|
caption
|
Caption associated with the figure. |
|
footnotes
|
List of footnotes associated with the figure. |
|
id
|
Figure ID. |
Methods
| as_dict |
Return a dict that can be JSONify using json.dump. |
| clear | |
| copy | |
| get | |
| items | |
| keys | |
| pop | |
| popitem | |
| setdefault | |
| update | |
| values |
as_dict
clear
clear() -> None
copy
copy() -> Model
get
get(key: str, default: Any = None) -> Any
Parameters
| Name | Description |
|---|---|
|
key
Required
|
|
|
default
|
Default value: None
|
items
items() -> ItemsView[str, Any]
keys
keys() -> KeysView[str]
pop
pop(key: str, default: ~typing.Any = <object object>) -> Any
Parameters
| Name | Description |
|---|---|
|
key
Required
|
|
|
default
|
|
popitem
popitem() -> Tuple[str, Any]
setdefault
setdefault(key: str, default: ~typing.Any = <object object>) -> Any
Parameters
| Name | Description |
|---|---|
|
key
Required
|
|
|
default
|
|
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> ValuesView[Any]
Attributes
bounding_regions
Bounding regions covering the figure.
bounding_regions: List[_models.BoundingRegion] | None
caption
Caption associated with the figure.
caption: _models.DocumentCaption | None
elements
Child elements of the figure, excluding any caption or footnotes.
elements: List[str] | None
footnotes
List of footnotes associated with the figure.
footnotes: List[_models.DocumentFootnote] | None
id
Figure ID.
id: str | None
spans
Location of the figure in the reading order concatenated content. Required.
spans: List[_models.DocumentSpan]