[okular] [Bug 381629] add arrow's option to annotation tools

Tobias Deiminger bugzilla_noreply at kde.org
Thu Nov 1 18:22:34 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=381629

Tobias Deiminger <haxtibal at posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |haxtibal at posteo.de

--- Comment #2 from Tobias Deiminger <haxtibal at posteo.de> ---
Certainly a useful feature. Needs person power, and might be a student project
(?).

Entry point would be to read the PDF reference, which defines "OpenArrow" and
"ClosedArrow" for Line and Polyline Annotations (annotations in Okular closely
follow the PDF standard, even for non-PDF documents). 

For non-PDF docs, drawing those line endings would have to be implemented in
ui/pagepainter.cpp, PagePainter::paintCroppedPageOnPainter, "if ( type ==
Okular::Annotation::ALine )".

For PDF documents, drawing operations had to go into the poppler library,
poppler/Annot.cc, AnnotLine::generateLineAppearance and AnnotPolygon::draw.
Popplers core and Qt5 API is already prepared to take line ending settings. But
eventually there's no life but a "// TODO: Line endings" in the code.

Of course we would also have to implement all the surrounding UI dialogs,
config settings and document archive entries.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list