Replies: 3 comments
-
Same problem here! Trying to interact with the pdf viewer don't work for me by using ExecuteScriptAsync... within the dev console it work's fine. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Till date, this question is unanswered. I am having this problem with Windows App SDK 1.1.3 (Visual Studio 2022 17.2.6) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Need this function also. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to grab and save the page number of a PDF so that it can be saved and returned to when a user closes the WebView and returns. However at the moment when attempting to use the ExecuteScriptAsync command to run a 'getElementById' command all that gets returned is null. For any div ID I try to search. The command works just fine if run through dev tools in console, so the id is correct. I also noticed when just trying to return the 'document' all that gets returned is a JSON object that contains a hashed value and the path to the PDF file in question. Everything works fine if attempting this through a regular web page however. Is this just the behavior of the PDF Viewer?
To shorten my question, is there another way to grab the current page of a PDF in WebView2?
Beta Was this translation helpful? Give feedback.
All reactions