()
| 377 | first_annot.next.type |
| 378 | |
| 379 | def test_3209(): |
| 380 | pdf = pymupdf.Document(filetype="pdf") |
| 381 | page = pdf.new_page() |
| 382 | page.add_ink_annot([[(300,300), (400, 380), (350, 350)]]) |
| 383 | n = 0 |
| 384 | for annot in page.annots(): |
| 385 | n += 1 |
| 386 | assert annot.vertices == [[(300.0, 300.0), (400.0, 380.0), (350.0, 350.0)]] |
| 387 | assert n == 1 |
| 388 | path = os.path.abspath(f'{__file__}/../../tests/test_3209_out.pdf') |
| 389 | pdf.save(path) # Check the output PDF that the annotation is correctly drawn |
| 390 | |
| 391 | def test_3863(): |
| 392 | path_in = os.path.normpath(f'{__file__}/../../tests/resources/test_3863.pdf') |
nothing calls this directly
no test coverage detected
searching dependent graphs…