Class EditTextHandler

  • All Implemented Interfaces:
    MouseListener, MouseMotionListener, EventListener, MouseInputListener, ToolHandler

    public class EditTextHandler
    extends TextSelection
    implements ToolHandler
    EditTextHandler is a tool handler that allows the user to edit text. Text selection can be specified by either work or line. The text is selected and a dialog is shown to allow the user to edit the text. The edited text is then used to update the content stream of the page.

    Editing success depends on how the text was encoded in the PDF. If the text has been encoded using a sub font that does not contain the glyphs for the text, then the text will be editable but may not be displayed correctly. In such a case the dialog will show warning message that the text may not be displayed correctly.