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 2017/11/25 15:13:43 UTC

svn commit: r1816306 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java

Author: tilman
Date: Sat Nov 25 15:13:43 2017
New Revision: 1816306

URL: http://svn.apache.org/viewvc?rev=1816306&view=rev
Log:
PDFBOX-2852: clarify comment

Modified:
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java?rev=1816306&r1=1816305&r2=1816306&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java (original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java Sat Nov 25 15:13:43 2017
@@ -81,11 +81,11 @@ public final class CreateSimpleForm
         // To use black, replace "0 0 1 rg" with "0 0 0 rg" or "0 g".
         defaultAppearanceString = "/Helv 12 Tf 0 0 1 rg";
         textBox.setDefaultAppearance(defaultAppearanceString);
-        
+
         // add the field to the acroform
         acroForm.getFields().add(textBox);
-        
-        // Specify the annotation associated with the field
+
+        // Specify the widget annotation associated with the field
         PDAnnotationWidget widget = textBox.getWidgets().get(0);
         PDRectangle rect = new PDRectangle(50, 750, 200, 50);
         widget.setRectangle(rect);
@@ -99,10 +99,10 @@ public final class CreateSimpleForm
         fieldAppearance.setBackground(new PDColor(new float[]{1,1,0}, PDDeviceRGB.INSTANCE));
         widget.setAppearanceCharacteristics(fieldAppearance);
 
-        // make sure the annotation is visible on screen and paper
+        // make sure the widget annotation is visible on screen and paper
         widget.setPrinted(true);
         
-        // Add the annotation to the page
+        // Add the widget annotation to the page
         page.getAnnotations().add(widget);
         
         // set the field value