Simulating a button being pressed to download a PDF file.

ScooterNorm

New Member
Joined
Feb 25, 2024
Messages
22
Office Version
  1. 2016
Platform
  1. Windows
I am trying to download the PDF file from this Web page.

VBA Code:
https://tsdr.uspto.gov/documentviewer?caseId=sn97775647&docId=NFIN20231101163538&linkId=5#docIndex=0&page=1

The HTML code looks like:

Code:
...
<input id="back" type="button" class="page displayNone" value="Back" title="back to normal display (b)"></input></span>
    <h3>USPTO TSDR Case Viewer
        <a class="tdr_search1 helpIconh2" href="javascript:page.helpOverlay.open( 'doc_viewer' )" title="Click here for help on case searches (1)               Document viewer help">
            <img class="helpIcon docs" src="img/icn-Help16x16.gif" alt="Help"></img>
        </a>
    </h3>
...

The web page has a button called "Download PDF" which I am trying to emulate.
I believe the button is executing

VBA Code:
"<a class="tdr_search1 helpIconh2" href="javascript:page. ..."

It is using javascript, I think, which I am far from an expert with. So how can I simulate the button "Download PDF" being pushing?

Thanks for all your help,
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top