Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

PDF download does not complete

Post Reply
FMI
Posts: 6
Joined: Mon May 15, 2023 5:56 pm

PDF download does not complete

Post 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
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: PDF download does not complete

Post 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
Post Reply