Skip to content

Highlighter tool #43

@tajgarhwa

Description

@tajgarhwa

When I enable the Highlighter tool (setHighlightColor and setTextHighlighterOn), highlighting works correctly. But when I touch the PDF screen, instead of selecting text, it behaves like freehand doodle/ink drawing.

Expected behavior:
When Highlighter mode is enabled, the user should only be able to select text and apply highlight. The ink/doodle mode should not be triggered automatically.

What I tried:

Set pdfViewer.cursorToolMode = TEXT_SELECT

Tried disabling ink and other tools via setInkOn(false), setFreeTextOn(false), setStampOn(false)
But still, on touch, the doodle behavior is triggered.

Question:
Is there any additional API call required to properly enable only Highlighter mode?
Or is this a bug where ink/doodle mode gets activated automatically?

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