Skip to content

Text selection disabled on Safari #317

Description

Hi,

I've clone the repo but for some reason text selection doesn't work on safari although works perfectly fine on chrome. Did someone have a similar issue?

I found that:

  • Standard selection methods don't work but text selection via JavaScript window.getSelection() does
  • PDF renders correctly
  • Text content exists in the DOM (word search works; doesn't highlight)
  • Individual text divs are empty despite text layer containing content

I've tried without success:

  • Changing textLayerMode from 2 to 1
  • Legacy pdf.js import
  • Disabling all custom .css overwrites
  • Disabling event handlers
  • Loading worker from local dir

Only things that work were:

  • creating totally new pdf viewer on pdf.js
  • running demo

Thanks in advance for any tips!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions