Hello,
I am trying to manually edit the annotation X and Y values outside of PDF express to give more specific control over where they are. When I change the X or Y value it moves the box to select the annotation but the annotation visual does not get redrawn to match the box.
PDF.js Express Version
“7.2.0”
Code snippet
const all_widgets = annotManager.getAnnotationsList();
all_widgets.forEach(widget => {
var widget_id = widget.Id;
console.log(widget_id);
if (widget_id == current_selected_annotation.Id) {
console.log("Selected");
console.log(widget.X);
widget.X = parseInt($("#x").val());
annotManager.redrawAnnotation(widget);
}
});