()
| 129 | assert isinstance( samples, int) |
| 130 | |
| 131 | def test_2369(): |
| 132 | |
| 133 | width, height = 13, 37 |
| 134 | image = pymupdf.Pixmap(pymupdf.csGRAY, width, height, b"\x00" * (width * height), False) |
| 135 | |
| 136 | with pymupdf.Document(stream=image.tobytes(output="pam"), filetype="pam") as doc: |
| 137 | test_pdf_bytes = doc.convert_to_pdf() |
| 138 | |
| 139 | with pymupdf.Document(stream=test_pdf_bytes) as doc: |
| 140 | page = doc[0] |
| 141 | img_xref = page.get_images()[0][0] |
| 142 | img = doc.extract_image(img_xref) |
| 143 | img_bytes = img["image"] |
| 144 | pymupdf.Pixmap(img_bytes) |
| 145 | |
| 146 | def test_page_idx_int(): |
| 147 | doc = pymupdf.open(pdf) |
nothing calls this directly
no test coverage detected
searching dependent graphs…