()
| 386 | |
| 387 | |
| 388 | def test_3994(): |
| 389 | path = os.path.normpath(f'{__file__}/../../tests/resources/test_3994.pdf') |
| 390 | with pymupdf.open(path) as document: |
| 391 | page = document[0] |
| 392 | txt_blocks = [blk for blk in page.get_text('dict')['blocks'] if blk['type']==0] |
| 393 | for blk in txt_blocks: |
| 394 | pix = page.get_pixmap(clip=pymupdf.Rect([int(v) for v in blk['bbox']]), colorspace=pymupdf.csRGB, alpha=False) |
| 395 | percent, color = pix.color_topusage() |
| 396 | wt = pymupdf.TOOLS.mupdf_warnings() |
| 397 | assert wt == 'premature end of data in flate filter\n... repeated 2 times...' |
| 398 | |
| 399 | |
| 400 | def test_3448(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…