()
| 892 | pdf.save(os.path.abspath(f'{__file__}/../../tests/test_3070_out.pdf')) |
| 893 | |
| 894 | def test_bboxlog_2885(): |
| 895 | doc = pymupdf.open(os.path.abspath(f'{__file__}/../../tests/resources/test_2885.pdf')) |
| 896 | page=doc[0] |
| 897 | |
| 898 | bbl = page.get_bboxlog() |
| 899 | wt = pymupdf.TOOLS.mupdf_warnings() |
| 900 | if pymupdf.mupdf_version_tuple >= (1, 28): |
| 901 | assert wt == '' |
| 902 | else: |
| 903 | assert wt == 'invalid marked content and clip nesting' |
| 904 | |
| 905 | bbl = page.get_bboxlog(layers=True) |
| 906 | wt = pymupdf.TOOLS.mupdf_warnings() |
| 907 | if pymupdf.mupdf_version_tuple >= (1, 28): |
| 908 | assert wt == '' |
| 909 | else: |
| 910 | assert wt == 'invalid marked content and clip nesting' |
| 911 | |
| 912 | def test_3081(): |
| 913 | ''' |
nothing calls this directly
no test coverage detected
searching dependent graphs…