diff --git a/tests/utils/test_pdf_to_text.py b/tests/utils/test_pdf_to_text.py index 888ed764..704f7449 100644 --- a/tests/utils/test_pdf_to_text.py +++ b/tests/utils/test_pdf_to_text.py @@ -6,7 +6,7 @@ from swarms.utils import pdf_to_text @pytest.fixture def pdf_file(tmpdir): pdf_writer = pypdf.PdfWriter() - pdf_page = pypdf.pdf.PageObject.createBlankPage(None, 200, 200) + pdf_page = pypdf.PageObject.create_blank_page(None, 200, 200) pdf_writer.add_page(pdf_page) pdf_file = tmpdir.join("temp.pdf") with open(pdf_file, "wb") as output: