• Robert Knight's avatar
    Allow integrations to indicate whether text can be annotated · ea7f5930
    Robert Knight authored
    Add a `canAnnotate` method to the `Integration` interface to indicate
    whether a range is part of the annotatable content of the document. This
    allows integrations to signal whether the Annotate/Highlight toolbar
    should be shown for a given selection.
    
    Implement it for PDFs by returning `true` if the range is part of the
    text layer of a single page. Implement it for HTML documents by always
    returning true.
    
    Fixes #3790
    ea7f5930
pdf.js 19.8 KB