(
page: 'Page',
point: point_like,
text: typing.Union[str, list],
*,
fontsize: float = 11,
lineheight: OptFloat = None,
fontname: str = "helv",
fontfile: OptStr = None,
set_simple: int = 0,
encoding: int = 0,
color: OptSeq = None,
fill: OptSeq = None,
border_width: float = 0.05,
miter_limit: float = 1,
render_mode: int = 0,
rotate: int = 0,
morph: OptSeq = None,
overlay: bool = True,
stroke_opacity: float = 1,
fill_opacity: float = 1,
oc: int = 0,
)
| 12561 | page._addAnnot_FromString((annot,)) |
| 12562 | |
| 12563 | def insert_text( |
| 12564 | page: 'Page', |
| 12565 | point: point_like, |
| 12566 | text: typing.Union[str, list], |
| 12567 | *, |
| 12568 | fontsize: float = 11, |
| 12569 | lineheight: OptFloat = None, |
| 12570 | fontname: str = "helv", |
| 12571 | fontfile: OptStr = None, |
| 12572 | set_simple: int = 0, |
| 12573 | encoding: int = 0, |
| 12574 | color: OptSeq = None, |
| 12575 | fill: OptSeq = None, |
| 12576 | border_width: float = 0.05, |
| 12577 | miter_limit: float = 1, |
| 12578 | render_mode: int = 0, |
| 12579 | rotate: int = 0, |
| 12580 | morph: OptSeq = None, |
| 12581 | overlay: bool = True, |
| 12582 | stroke_opacity: float = 1, |
| 12583 | fill_opacity: float = 1, |
| 12584 | oc: int = 0, |
| 12585 | ): |
| 12586 | |
| 12587 | img = page.new_shape() |
| 12588 | rc = img.insert_text( |
| 12589 | point, |
| 12590 | text, |
| 12591 | fontsize=fontsize, |
| 12592 | lineheight=lineheight, |
| 12593 | fontname=fontname, |
| 12594 | fontfile=fontfile, |
| 12595 | set_simple=set_simple, |
| 12596 | encoding=encoding, |
| 12597 | color=color, |
| 12598 | fill=fill, |
| 12599 | border_width=border_width, |
| 12600 | render_mode=render_mode, |
| 12601 | miter_limit=miter_limit, |
| 12602 | rotate=rotate, |
| 12603 | morph=morph, |
| 12604 | stroke_opacity=stroke_opacity, |
| 12605 | fill_opacity=fill_opacity, |
| 12606 | oc=oc, |
| 12607 | ) |
| 12608 | if rc >= 0: |
| 12609 | img.commit(overlay) |
| 12610 | return rc |
| 12611 | |
| 12612 | def insert_textbox( |
| 12613 | page: 'Page', |
nothing calls this directly
no test coverage detected