3

I'm trying to automate a task in which a PDF file is generated on clicking a link. My browser settings are such that the file gets opened in a new tab of browser. The browser settings can't be changed as it'll impact other jobs on a daily run.

Is there a way through which we can read the contents of the PDF file opened in the browser in SeleniumWebdriver using Python?

I'm mainly using Chrome or Firefox to automate the task.

5
  • Does this answer your question? How to download a pdf file in chrome using selenium webdriver Commented Jun 11, 2020 at 6:24
  • Also Selenium Webdriver: How to Download a PDF File with Python? Commented Jun 11, 2020 at 6:26
  • @metatoaster My question is about reading the PDF file which is different one from the your suggested ones. Commented Jun 11, 2020 at 6:40
  • Or you could search online and you might have come across this tutorial, though you will need to figure out the Python equivalent API calls. Commented Jun 11, 2020 at 6:44
  • 1
    Thanks for that. I have gone through such methods but I'm unable to find out python equivalent libraries for PDF operations. I guess someone might help me out with that. Commented Jun 11, 2020 at 6:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.