What happened?
With new PDF engine not all PDFs can be shown and if a PDF cannot be shown it will just display a black page. Same PDF can be shown with legacy PDF engine (support to be removed in version 155).
I uploaded NotWorkingPDF and WorkingPDF in case you need to compare what causes the failure. After some basic testing it seems to be due to how the font is read (especially if it contains blank spaces).
It is works to open in Adobe Acrobat.
WorkingPDF.pdf
NotWorkkingPDF.pdf
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
151.0.4129.72
SDK Version
No response
Framework
Winforms
Operating System
Windows 11
OS Version
No response
Repro steps
Open NotWorkingPDF.pdf -> Is completely black
Set edge policy NewPDFReaderEnabled=false
Open NotWorkingPDF.pdf again -> Works
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
Regression in newer Runtime
Last working version (if regression)
No response
What happened?
With new PDF engine not all PDFs can be shown and if a PDF cannot be shown it will just display a black page. Same PDF can be shown with legacy PDF engine (support to be removed in version 155).
I uploaded NotWorkingPDF and WorkingPDF in case you need to compare what causes the failure. After some basic testing it seems to be due to how the font is read (especially if it contains blank spaces).
It is works to open in Adobe Acrobat.
WorkingPDF.pdf
NotWorkkingPDF.pdf
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
151.0.4129.72
SDK Version
No response
Framework
Winforms
Operating System
Windows 11
OS Version
No response
Repro steps
Open NotWorkingPDF.pdf -> Is completely black
Set edge policy NewPDFReaderEnabled=false
Open NotWorkingPDF.pdf again -> Works
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
Regression in newer Runtime
Last working version (if regression)
No response