Ability to create and edit "free text" box annotations (inline overlaid rectangles)
Okular is able to render, create and edit these "Post-It" style annotations, what it calls "inline" annotations but actually are POPPLER_ANNOT_FREE_TEXT
:
Evince/Papers is able to render those annotations already, but it isn't able to create or edit them. This would need both a UI design for this, and possibly some work to make it fully possible with poppler-glib, according to Germán (yet the API reference links further below hints that there already is some of it implemented somewhere).
As shown below, in Okular, in addition to editing the actual text contents, you can set:
- the position, width and height (via direct drag-and-drop manipulation on the canvas);
- background color (and opacity, which we probably wouldn't want between 0 and 100 unless we have a composited blur API or changing opacity based on mouse hover? I guess the fundamental reason why this setting exists is that you can also have free-standing text annotations with no background color, i.e. text-only with fully transparent background);
- font style (family, size, etc.);
- text alignment (left, centered, right; we probably would want only left-aligned except for RTL languages, but with standard 6px padding all around so that it's not flush against the edges?);
- border width: personally, I think we should simply set a thin (maybe 0.5, rather than 1 and above?) border by default?
- author name (not only on initial creation, but it allows changing it afterwards)
General Poppler API reference:
Edited by Jeff Fortin