FoxitPDFSDKforWeb  8.4.0
Foxit PDF SDK for Web
CopyAnnotTextController Class Reference
Inheritance diagram for CopyAnnotTextController:
AnnotOperationController

Protected Member Functions

 visibility (annot)
 
- Protected Member Functions inherited from AnnotOperationController
 usable (annot)
 A method for subclasses to override to take control the component usability, this method is called before parent component shown. More...
 
 visibility (annot)
 A method for subclasses to override to take control the component visibility, this method is called before parent component shown. More...
 

Detailed Description

Feature:

Copy the characters in the text-markup boundary to clipboard.

Usage:

in template:

<contextmenu-item-copy-text @controller="annot-opr:CopyAnnotTextController"></contextmenu-item-copy-text>
<contextmenu-item @controller="annot-opr:CopyAnnotTextController"></contextmenu-item>

in fragment config:

new PDFUI({
fragments: [{
target: 'fv--contextmenu-item-copy-text',
config: {
callback: UIExtension.controllers.CopyAnnotTextController
}
}]
});

Member Function Documentation

◆ visibility()

CopyAnnotTextController::visibility (   annot)
inlineprotected
Parameters
annotPDF.annots.Annot
Returns
boolean - true if the annot is not an area-highlight and replace, otherwise false.

Foxit Software Corporation Logo
@2022 Foxit Software Incorporated. All rights reserved.