Skip to content

Fix line annotation arrows for usage in dimensioning

By combining leader lines with arrow/slash endings, one can use AnnotLine for dimensioning (e.g. see Line Annotation key IT = LineDimension in PDF reference). Current drawing instructions didn't consider this use case. The combination of leader line with ROpenArrow, RClosedArrow and Slash looked poor because arrows were shifted to the inside of the leader strokes. Additionally the main segment was not shortened correctly for some arrow types.

This MR fixes the mentioned issues for AnnotLine and AnnotPolygon.

Can be tested along with Okular D20760, or with this PDF lineannotations.pdf.

Edited by Tobias Deiminger

Merge request reports