I'm developing a simple solution that needs to access some web pages (I'm using Webbrowser/VB.NET). SOme of this resources has PDFs inside IFRAMEs. I need to save this PDFs.
How can my program interact with the PDF Viewer in the Webbrowser ? is there a 'command' to save the PDF file to a specified directory ?
I tried some ways (I think I'm wrong in some of it):
- to search for a method to interact with the IFRAME (I didnt find anything);
- interact with the windows process (AcroBroker) trying to use ShellExecute to interact (I think it is not possible);
- try to find the temporary file downloaded (I'm trying to implement it now).
- I tried to use a webclient to download and save the file directly but the server application has some security implementations that not permit.
Any idea ?