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 2015/07/20 21:48:46 UTC

svn commit: r1692009 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java

Author: tilman
Date: Mon Jul 20 19:48:46 2015
New Revision: 1692009

URL: http://svn.apache.org/r1692009
Log:
PDFBOX-2852: fix typos

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java?rev=1692009&r1=1692008&r2=1692009&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java Mon Jul 20 19:48:46 2015
@@ -324,7 +324,7 @@ public class PDVisibleSignDesigner
 
         if (sigImgHeight == null || sigImgWidth == null)
         {
-            calcualteImageSize(inputForBufferedImage);
+            calculateImageSize(inputForBufferedImage);
         }
 
         this.imgageStream = revertInputStream;
@@ -333,21 +333,19 @@ public class PDVisibleSignDesigner
     }
 
     /**
-     * calculates image width and height. sported formats: all
+     * calculates image width and height. supported formats: all
      * 
      * @param fis - input stream of image
      * @throws IOException - if can't read input stream
      */
-    private void calcualteImageSize(InputStream fis) throws IOException 
+    private void calculateImageSize(InputStream fis) throws IOException 
     {
-
         BufferedImage bimg = ImageIO.read(fis);
         int width = bimg.getWidth();
         int height = bimg.getHeight();
 
         sigImgHeight = (float) height;
         sigImgWidth = (float) width;
-
     }
 
     /**