Page 1 of 1

PDF download does not complete

Posted: Tue Apr 22, 2025 8:16 am
by FMI
Hello the forum, hello Salvador

For a few days, one of my delphi software using TWVBrowser component encountered a problem.
I use ExecuteScript function to click on download buttons. Now, download starts and complete creating TMP file.
Finally TMP file is not renamed to PDF. I need final PDF name to move file.
Is there any way to know temporary file name created by download function ?
Maybe I can manually rename TMP file to PDF ?

Directly using download buttons on website, download is OK.

Have a nice day

FMI

Re: PDF download does not complete

Posted: Tue Apr 22, 2025 9:59 am
by salvadordf
Hi,

This issue might be related :
https://github.com/MicrosoftEdge/WebView2Feedback/issues/5196

I haven't tried any workaround but perhaps you can get a different result with the Input.dispatchMouseEvent DevTools method :
https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent