You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/06/04 19:53:00 UTC

svn commit: r1832888 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDLineAppearanceHandler.java

Author: tilman
Date: Mon Jun  4 19:52:59 2018
New Revision: 1832888

URL: http://svn.apache.org/viewvc?rev=1832888&view=rev
Log:
PDFBOX-3353: add a //TODO for the work not done

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDLineAppearanceHandler.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDLineAppearanceHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDLineAppearanceHandler.java?rev=1832888&r1=1832887&r2=1832888&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDLineAppearanceHandler.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDLineAppearanceHandler.java Mon Jun  4 19:52:59 2018
@@ -251,6 +251,9 @@ public class PDLineAppearanceHandler ext
             // paint the styles here and not before showing the text, or the text would appear
             // with the interior color
             boolean hasBackground = cs.setNonStrokingColorOnDemand(annotation.getInteriorColor());
+            //TODO support non-angled styles. This is more difficult than in the other handlers
+            // because the lines do not always go from (x1,y1) to (x2,y2) due to the leader lines
+            // when the "y" value above is not 0.
             drawStyle(annotation.getStartPointEndingStyle(), cs, 0, y, ab.width, hasStroke, hasBackground);
             drawStyle(annotation.getEndPointEndingStyle(), cs, lineLength, y, ab.width, hasStroke, hasBackground);
         }