We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b63085e commit c819acbCopy full SHA for c819acb
PyPDF2/generic/_data_structures.py
@@ -679,6 +679,8 @@ def __init__(
679
data = b""
680
for s in stream:
681
data += b_(s.get_object().get_data())
682
+ if data[-1] != b"\n":
683
+ data += b"\n"
684
stream_bytes = BytesIO(data)
685
else:
686
stream_data = stream.get_data()
tests/test_page.py
@@ -265,6 +265,11 @@ def test_iss_1142():
265
"https://github.com/py-pdf/PyPDF2/files/9150656/ST.2019.PDF",
266
"iss_1134.pdf",
267
),
268
+ # iss 1:
269
+ (
270
+ "https://github.com/py-pdf/PyPDF2/files/9432350/Work.Flow.From.Check.to.QA.pdf",
271
+ "WFCA.pdf",
272
+ ),
273
],
274
)
275
def test_extract_text_page_pdf(url, name):
0 commit comments