We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4258f7c commit 35a2974Copy full SHA for 35a2974
tests/resources/test_3654.docx
13 KB
tests/test_general.py
@@ -1246,3 +1246,16 @@ def test_3615():
1246
print(doc.pagelayout)
1247
wt = pymupdf.TOOLS.mupdf_warnings()
1248
assert wt
1249
+
1250
+def test_3654():
1251
+ path = os.path.normpath(f'{__file__}/../../tests/resources/test_3654.docx')
1252
+ content = ""
1253
+ with pymupdf.open(path) as document:
1254
+ for page in document:
1255
+ content += page.get_text() + '\n\n'
1256
+ content = content.strip()
1257
1258
+ # As of 2024-07-04 we get a warning for this input file.
1259
+ wt = pymupdf.TOOLS.mupdf_warnings()
1260
+ assert wt == 'dropping unclosed output'
1261
0 commit comments