trebahl

Results 6 comments of trebahl

This would be very useful for us too. I would call it more a bug than a feature request, because navigating twice in a row to the same file with...

@ToratEmetInWord I found a solution. It's hackish and could break with later versions of chrome but it works at the moment. You have to send js code to be executed...

@ToratEmetInWord Here's a complete example to run as an exe. Replace "f:/tmp/a.pdf" by a path to some pdf you have, then clicking the "nextpage" button should do what its name...

I have delved deeper into this since I first posted, and identified some difficulties: You have to wait until the pdf viewer is fully initialized before you can pass commands....

PS: here's how to examine the result of the js code you send to be executed. var t = wv.Eval("...."); t.ContinueWith(tt => { /* check for tt.Exception and if null...

PPS: I've ran into a nightmare of conflicts of versions of dependencies while using WebView2.Core.DevToolsProtocolExtension. I ended up using CoreWebView2.CallDevToolsProtocolMethodForSessionAsync directly instead, using Newtonsoft.Json for the serialization/deserialization. (The code above...