Skip to content

PdfViewer: Disabling the form-field editor via toolbar items causes an exception when interacting with form fields #144

@SergenN

Description

@SergenN

when you disable the annotation editor using the following settings:

<ejs-pdfviewer [toolbarSettings]="toolbarSettings" [contextMenuOption]="'None'" [enableBookmark]="false" [enableTextMarkupAnnotation]="false" [serviceUrl]="service"> </ejs-pdfviewer>

toolbarSettings: ToolbarSettingsModel = { toolbarItems: [ 'OpenOption', 'PageNavigationTool', 'MagnificationTool', 'PanTool', 'SelectionTool', 'SearchOption', 'PrintOption', 'DownloadOption', 'UndoRedoTool' ] };

Clicking an form-field works fine the first time but after the second time the following exception occurs:

TypeError: undefined is not an object (evaluating 'this.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage')

Which appears to be happening here. This exception blocks the signature dialog to open when it has been closed for the first time.

Hovering over the buttons in the toolbar will result in the following exception:
TypeError: undefined is not an object (evaluating 'this.annotationToolbarModule.shapeToolbarElement.contains')
Which appears to be originating from here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions