Skip to content

Add wrapping/resizing for Freetext annotations #18191

Open
@atrinker

Description

@atrinker

Attach (recommended) or Link to PDF file here:
Using Demo Viewer

Configuration:

  • Web browser and its version: Mozilla
  • Operating system and its version: Windows 10
  • PDF.js version: 4.3.136

Steps to reproduce the problem:

  1. Open demo viewer.
  2. Add a freetext annotation
  3. Enter a long string of text

What is the expected behavior? (add screenshot)
When a freetext annotation begins to spill off page, it should instead wrap to a new line. Ideally, you should be able to resize the freetext container to dictate where the text will begin to wrap.
Screenshot 2024-05-30 at 12-18-28 compressed tracemonkey-pldi-09 pdf

What went wrong? (add screenshot)
freetext annotations can spill off of the page and have portions become unviewable.
Screenshot 2024-05-30 at 12-16-59 compressed tracemonkey-pldi-09 pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions