When browsing to a PDF (example:
http://www.africau.edu/images/default/sample.pdf) , either via having the pdf filename in the url or by clicking on the pdf link (in
http://www.africau.edu/images/default/), the browser shows the pdf and bypasses the download handler. (The download handler works on (some) other filetypes. I got that to work first before working on the pdf.) I would like to download the pdf. Is there a way to accomplish that? The html document itself can be saved, but that just has the pdf listed with an id. If it is the built-in pdf plugin that is showing it, is there a way to disable or override the plugin, or perhaps usurp the data stream from it? Maybe being able to click the download/save button the plugin shows? Or perhaps even having my own handler save the file instead?
Some background: My current project uses Selenium and Titanium Proxy to download generated PDFs. Selenium logs in, goes to the report setup page, chooses the options we need, and clicks the generate report button. Titanium Proxy then grabs the response data stream and downloads the PDF. Lately, however, some of the reports are failing to download, even though they show up. After some research, i decided to try another solution, which is why i am looking at CefSharp.