Skip to content

[Problem/Bug]: New PDF engine cannot show PDFs with blankspace in basefont #5694

Description

@er-war-sectra

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymore

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions