diff --git a/src/display/editor/highlight.js b/src/display/editor/highlight.js index c16632097..6e894c1c1 100644 --- a/src/display/editor/highlight.js +++ b/src/display/editor/highlight.js @@ -237,6 +237,7 @@ class HighlightEditor extends AnnotationEditor { AnnotationEditorParamsType.HIGHLIGHT_THICKNESS, this.#thickness || HighlightEditor._defaultThickness, ], + [AnnotationEditorParamsType.HIGHLIGHT_FREE, this.#isFreeHighlight], ]; } diff --git a/src/shared/util.js b/src/shared/util.js index 32e450b59..d0df815d5 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -89,6 +89,7 @@ const AnnotationEditorParamsType = { HIGHLIGHT_COLOR: 31, HIGHLIGHT_DEFAULT_COLOR: 32, HIGHLIGHT_THICKNESS: 33, + HIGHLIGHT_FREE: 34, }; // Permission flags from Table 22, Section 7.6.3.2 of the PDF specification. diff --git a/web/annotation_editor_params.js b/web/annotation_editor_params.js index a29517d57..886341f4b 100644 --- a/web/annotation_editor_params.js +++ b/web/annotation_editor_params.js @@ -84,6 +84,9 @@ class AnnotationEditorParams { case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS: editorFreeHighlightThickness.value = value; break; + case AnnotationEditorParamsType.HIGHLIGHT_FREE: + editorFreeHighlightThickness.disabled = !value; + break; } } });