PTTextMarkupEditTool


@interface PTTextMarkupEditTool : PTTextSelectTool

Tool for editing existing text markup annotations, such as highlights, underlines, etc. In addition to changing basic properties like colour and opacity, it can change the annotation’s size, and it’s type (e.g. turn a highlight into an underline).

  • Selects the specified text markup annotation.

    Declaration

    Objective-C

    - (BOOL)selectTextMarkupAnnotation:(nonnull PTAnnot *)annotation
                          onPageNumber:(unsigned int)pageNumber;

    Swift

    func selectTextMarkupAnnotation(_ annotation: PTAnnot, onPageNumber pageNumber: UInt32) -> Bool

    Parameters

    annotation

    the annotation to select

    pageNumber

    the page number of the annotation

    Return Value

    YES if the annotation was selected, NO otherwise.

  • Copies the PDF text under the selected text markup annotation to the system clipboard/pasteboard.

    This method is called by default by the “Copy” selection menu item.

    Declaration

    Objective-C

    - (void)copySelectedMarkupText:(nonnull id)sender;

    Swift

    func copySelectedMarkupText(_ sender: Any)
  • Shows a menu that allows changing the text markup type for the currently selected annotation(s).

    This method is called by default by the “Type” selection menu item.

    Declaration

    Objective-C

    - (void)editSelectedAnnotationType:(nonnull id)sender;

    Swift

    func editSelectedAnnotationType(_ sender: Any)
  • Flattens the currently selected text markup annotation(s).

    This method is called by default by the “Flatten” selection menu item.

    Declaration

    Objective-C

    - (void)flattenSelectedAnnotations:(nonnull id)sender;

    Swift

    func flattenSelectedAnnotations(_ sender: Any)