Skip to content

[Problem/Bug]: Textarea content containing accented characters is not wrapped correctly in the new PDF viewer #5543

@mgarnier11

Description

@mgarnier11

What happened?

When opening a PDF file containing a textarea field, the text wrapping behaves incorrectly if the content includes accented characters.

If the textarea contains characters with accents (e.g., é, è, à), the entire text is rendered on a single line, even when the text length exceeds the width of the textarea. As a result, the content overflows horizontally instead of wrapping onto multiple lines.

When the same text does not contain accented characters, the wrapping behaves correctly and the content is displayed on multiple lines within the textarea.

This issue occurs only when the new PDF viewer is enabled
When the flag is set to disabled (edge://flags/#edge-new-pdf-viewer), both files render correctly and the text wraps as expected.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

146.0.3856.62

SDK Version

No response

Framework

Other

Operating System

Windows 11

OS Version

10.0.26200

Repro steps

  • Enable the new PDF viewer
  • Open the attached PDF file containing a textarea with accented characters.
  • Go to the 7th page and observe that the text appears on a single line and overflows the textarea.
Image
  • Open the 2nd pdf file (same content but without accentued characters)
  • Go to the 7th page and observe that the text wraps correctly
Image

with bug.pdf
without bug.pdf

Repros in Edge Browser

Yes, issue can be reproduced in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions