File Name Issue in Edge Browser’s Print Dialog Feature (index.pdf)

In the Edge browser, I am opening the file specified in the src of an iframe as shown below. However, when trying to save it as a PDF, the file name appears correctly in the Chrome browser, but in the Edge browser, it defaults to “index.pdf.”

Despite my attempts, I haven’t been able to change this file name. Could you please assist me?

`…

    var objFra = document.getElementById(iframeName);

    if (isChrome || isOpera) {
        objFra.contentWindow.focus();
        objFra.contentWindow.print();
    }
    else if (isEdge || isInternetExplorer || isFirefox) {
        objFra.onload = function () {
            objFra.contentWindow.focus();
            objFra.contentWindow.print();
            return;
        }
        if (isEdge) {
            window.setTimeout(printDocument, 100);
        }
    ...}`

<iframe src="../../File/TEMP/e42c2279-1363-4d87-933f-625ff20eec7d/ExampleDocument.pdf#zoom=100&amp;toolbar=0" class="m-3" style="height: 95% !important; width: 99%" frameborder="0" id="iDoc" name="iDoc"></iframe>

I expect the PDF file name to appear correctly here, just as it does in the Chrome browser. I tried changing the iframe title and other information, but I couldn’t achieve the desired result.

enter image description here