Get PDF content #3551
Get PDF content #3551
-
| If I have the link to a PDF file, how may get its content by using SeleniumBase? |
Beta Was this translation helpful? Give feedback.
Answered by mdmintz Feb 21, 2025
Replies: 1 comment 4 replies
-
| There's SeleniumBase/help_docs/method_summary.md Lines 329 to 331 in 8317bc8 Example: SeleniumBase/examples/test_get_pdf_text.py from seleniumbase import BaseCase BaseCase.main(__name__, __file__) class PdfTests(BaseCase): def test_get_pdf_text(self): pdf = "https://nostarch.com/download/Automate_the_Boring_Stuff_sample_ch17.pdf" pdf_text = self.get_pdf_text(pdf, page=1) print("\n" + pdf_text) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
There's
sb.get_pdf_text(pdf):SeleniumBase/help_docs/method_summary.md
Lines 329 to 331 in 8317bc8
Example: SeleniumBase/examples/test_get_pdf_text.py