Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem/Bug]: WebView2 displays a blank page when opening a PDF file with parameter "#zoom=300,400,500" #4788

Open
lh0328 opened this issue Sep 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@lh0328
Copy link

lh0328 commented Sep 4, 2024

What happened?

The path carrying parameter of the opened PDF file is "#zoom=300,400,500", and the result is displayed as a blank page, but not all PDF files will be displayed as a blank page. I am very confused about this and do not understand why some PDF files will be displayed as a blank page. Please help me.

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

121.0.2277.128

SDK Version

1.0.2210.55

Framework

Win32

Operating System

Windows 10

OS Version

19045.4651

Repro steps

Call the Navigation method and pass the path "D:\Work\PDFList\ 07000003.pdF #zoom=300,400,500".(PDF file total 2 pages)
The result appears as a blank page.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

AB#53949951

@lh0328 lh0328 added the bug Something isn't working label Sep 4, 2024
@lh0328
Copy link
Author

lh0328 commented Sep 5, 2024

This problem occurs when the WebView2 window is relatively small, and the PDF file is only 2 pages, and the result is shown in the figure below:
image
But, when scrolling up and down, the page is not blank and a PDF is rendered.
Could be a refresh issue!
Please answer.

@monica-ch monica-ch added the tracked We are tracking this work internally. label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

2 participants