To do that, you would first have to automate your web browser, then open the PDF from there.
To automate Edge through VBA, you need to use SeleniumBasic. SeleniumBasic is a browser automation framework for VB.Net, VBA and VBScript. See:
EDGE : Opening and filling a webpage through VBA - Microsoft Q&A. The information there is a bit dated, but it should get you started in the right direction.