Skip to content

Commit 7ddd7a3

Browse files
committed
Use caching by default in get_pdf_text()
1 parent 857f860 commit 7ddd7a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4691,6 +4691,7 @@ def get_pdf_text(
46914691
wrap=False,
46924692
nav=False,
46934693
override=False,
4694+
caching=True,
46944695
):
46954696
"""Gets text from a PDF file.
46964697
PDF can be either a URL or a file path on the local file system.
@@ -4712,7 +4713,8 @@ def get_pdf_text(
47124713
(Not needed because the PDF will be downloaded anyway.)
47134714
override - If the PDF file to be downloaded already exists in the
47144715
downloaded_files/ folder, that PDF will be used
4715-
instead of downloading it again."""
4716+
instead of downloading it again.
4717+
caching - If resources should be cached via pdfminer."""
47164718
import warnings
47174719

47184720
with warnings.catch_warnings():
@@ -4760,7 +4762,7 @@ def get_pdf_text(
47604762
password="",
47614763
page_numbers=page_search,
47624764
maxpages=maxpages,
4763-
caching=False,
4765+
caching=caching,
47644766
codec=codec,
47654767
)
47664768
pdf_text = self.__fix_unicode_conversion(pdf_text)

0 commit comments

Comments
 (0)