pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1857602 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
Date Mon, 15 Apr 2019 20:03:05 GMT
Author: tilman
Date: Mon Apr 15 20:03:04 2019
New Revision: 1857602

URL: http://svn.apache.org/viewvc?rev=1857602&view=rev
Log:
PDFBOX-3353: add constants for intents; improve javadoc

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java?rev=1857602&r1=1857601&r2=1857602&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
Mon Apr 15 20:03:04 2019
@@ -36,6 +36,21 @@ public class PDAnnotationFreeText extend
      */
     public static final String SUB_TYPE = "FreeText";
 
+    /**
+     * A plain free-text annotation, also known as a text box comment.
+     */
+    public static final String IT_FREE_TEXT = "FreeText";
+
+    /**
+     * A callout, associated with an area on the page through the callout line specified.
+     */
+    public static final String IT_FREE_TEXT_CALLOUT = "FreeTextCallout";
+
+    /**
+     * The annotation is intended to function as a click-to-type or typewriter object.
+     */
+    public static final String IT_FREE_TEXT_TYPE_WRITER = "FreeTextTypeWriter";
+
     private PDAppearanceHandler customAppearanceHandler;
 
     public PDAnnotationFreeText()
@@ -172,7 +187,8 @@ public class PDAnnotationFreeText extend
     }
 
     /**
-     * This will set the coordinates of the callout line.
+     * This will set the coordinates of the callout line. (PDF 1.6 and higher) Only relevant
if the
+     * intent is FreeTextCallout.
      *
      * @param callout An array of four or six numbers specifying a callout line attached
to the free
      * text annotation. Six numbers [ x1 y1 x2 y2 x3 y3 ] represent the starting, knee point,
and
@@ -187,7 +203,8 @@ public class PDAnnotationFreeText extend
     }
 
     /**
-     * This will get the coordinates of the callout line.
+     * This will get the coordinates of the callout line. (PDF 1.6 and higher) Only relevant
if the
+     * intent is FreeTextCallout.
      *
      * @return An array of four or six numbers specifying a callout line attached to the
free text
      * annotation. Six numbers [ x1 y1 x2 y2 x3 y3 ] represent the starting, knee point,
and ending



Mime
View raw message