MicrosoftEdge / MicrosoftEdge/WebView2Feedback
WebView2-Change PDF page programmatically (without reloading pdf document)
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
In our application, we currently use the webbrowser control to programmatically open a local PDF document and display a specific page. While the application is running, it programmatically changes the displayed page. This is done by accessing the document as IAcroAXDocShim and using setCurrentPage.
Describe the solution you'd like and alternatives you've considered
With WebVIEW2, I have attempted to do this PDF display with a url and uri fragments. For example, C:\4Page_Example.pdf#toolbar=0&view=fitV&page=4
Then, change the Source and Refresh to:
C:\4Page_Example.pdf#toolbar=0&view=fitV&page=8
However, the display will not change unless between each page change I additionally set and refresh the source to http://www.google.com.
Ideally, we could access the document like the DOM in webbrowser and then use it as IAcroAXDocShim and use setCurrentPage (and setShowToolbar, setPageMode, setLayoutMode, and setShowScrollbars)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.