()
| 33 | |
| 34 | |
| 35 | def test_freetext(): |
| 36 | doc = pymupdf.open() |
| 37 | page = doc.new_page() |
| 38 | annot = page.add_freetext_annot( |
| 39 | rect, |
| 40 | t1, |
| 41 | fontsize=10, |
| 42 | rotate=90, |
| 43 | text_color=blue, |
| 44 | fill_color=gold, |
| 45 | align=pymupdf.TEXT_ALIGN_CENTER, |
| 46 | ) |
| 47 | annot.set_border(width=0.3, dashes=[2]) |
| 48 | annot.update(text_color=blue, fill_color=gold) |
| 49 | assert annot.type == (2, "FreeText") |
| 50 | |
| 51 | |
| 52 | def test_text(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…