ComPDF React Native - v3.0.0
    Preparing search index...

    Class CPDFEditManager

    Controls content-editor modes and editing history for the current reader.

    Index

    Accessors

    Constructors

    Methods

    Accessors

    • get historyManager(): CPDFEditorHistoryManager

      Gets the history manager associated with this edit manager.

      Returns CPDFEditorHistoryManager

      The history manager instance.

      const manager = pdfReaderRef.current._editManager;
      const historyManager = manager.historyManager;
      await historyManager.canUndo();

    Constructors

    Methods

    • Changes the current editing modes.

      Parameters

      • editTypes: CPDFEditType[]

        An array of CPDFEditType values representing the desired editing modes.

      Returns Promise<boolean>

      A promise that resolves to true when the editing modes are changed.

      const manager = pdfReaderRef.current._editManager;
      await manager.changeEditType([CPDFEditType.Text, CPDFEditType.Image]);