Replies: 2 comments
-
@VaporiZed Can you try using window.open to download the PDF? See the example here: #1127 (comment). You also may be able to accomplish this using WebResourceRequested event (thread here: #38 (comment)). As far as bypassing the Save dialog, we're currently developing a SaveAs API in #1090 that may address your scenario. cc: @Master-Ukulele |
Beta Was this translation helpful? Give feedback.
-
Yes, the javascript-command |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I already asked the VisualStudio team, but they sent me here.
There are websites with links to PDF files.
I'd like to save a linked PDF file directly when clicking it's link instead of getting a preview of it, but I can't find the option to activate it.
There is also no just-save-the-file-in-the-default-directory-button. The save-button creates a save-as-dialog - not what I expected.
I also tried to configure the WebView2-instance via
CallDevToolsProtocolMethodAsync
andBrowser.setDownloadBehavior
(by thinking that I could achieve the desired behavior on this way) - but I couldn't find out, how to make it right. All the code trials led to "value out of range" errors.And finally my question: How to make it right?
Beta Was this translation helpful? Give feedback.
All reactions