This is with Blazor WASM.
I am developing an application to label PDF documents for machine learning. There are publicly available labelling tools, but they really aren't geared to working with PDFs.
My desired workflow for labelling is:
- highlight text
- when highlighting is complete then pop up dialog asking which label to assign
- create a highlight annotation using the bounds of the selected text captured on TextSelectionEnd
I am currently accomplishing this by dynamically creating the import annotation file and calling ImportAnnotations with the json string as the "filename" and then modifying your sample backend to just return the json I just sent. It works, but is strange.
I'll note that when using the UI one can highlight text, right-click, and then select "Highlight" from the context menu, so the routine obviously exists, but I have been unable to find it. I'd like to call the annotator directly without going through the import mechanism. See this bug report for a sample application: