()
| 77 | |
| 78 | |
| 79 | def test_wrapcontents(): |
| 80 | doc = pymupdf.open(filename) |
| 81 | page = doc[0] |
| 82 | page.wrap_contents() |
| 83 | xref = page.get_contents()[0] |
| 84 | cont = page.read_contents() |
| 85 | doc.update_stream(xref, cont) |
| 86 | page.set_contents(xref) |
| 87 | assert len(page.get_contents()) == 1 |
| 88 | page.clean_contents() |
| 89 | wt = pymupdf.TOOLS.mupdf_warnings() |
| 90 | if (1, 26, 0) <= pymupdf.mupdf_version_tuple < (1, 27): |
| 91 | assert wt == 'bogus font ascent/descent values (0 / 0)\nPDF stream Length incorrect' |
| 92 | else: |
| 93 | assert wt == 'PDF stream Length incorrect' |
| 94 | |
| 95 | |
| 96 | def test_page_clean_contents(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…