Author: tilman
Date: Sun Feb  4 08:37:37 2018
New Revision: 1823077

URL: http://svn.apache.org/viewvc?rev=1823077&view=rev
Log:
PDFBOX-3709: remove deprecated methods

Modified:
    
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java
    
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
    
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java?rev=1823077&r1=1823076&r2=1823077&view=diff
==============================================================================
--- 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java
 (original)
+++ 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java
 Sun Feb  4 08:37:37 2018
@@ -40,14 +40,6 @@ public interface PDFTemplateBuilder
 {
     /**
      * In order to create Affine Transform, using parameters.
-     * @param params
-     * @deprecated use {@link 
#createAffineTransform(java.awt.geom.AffineTransform) }
-     */
-    @Deprecated
-    void createAffineTransform(byte[] params);
-
-    /**
-     * In order to create Affine Transform, using parameters.
      * @param affineTransform
      */
     void createAffineTransform(AffineTransform affineTransform);
@@ -131,18 +123,6 @@ public interface PDFTemplateBuilder
 
     /**
      * An array of four numbers in the form coordinate system, giving the 
coordinates of the left,
-     * bottom, right, and top edges, respectively, of the form XObject’s 
bounding box. These
-     * boundaries shall be used to clip the form XObject and to determine its 
size for caching.
-     *
-     * @param params
-     * 
-     * @deprecated use {@link #createFormatterRectangle(int[]) 
createFormatterRectangle(int[])}
-     */
-    @Deprecated
-    void createFormatterRectangle(byte[] params);
-
-    /**
-     * An array of four numbers in the form coordinate system, giving the 
coordinates of the left,
      * bottom, right, and top edges, respectively, of the form XObject’s 
bounding box. These
      * boundaries shall be used to clip the form XObject and to determine its 
size for caching.
      *

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java?rev=1823077&r1=1823076&r2=1823077&view=diff
==============================================================================
--- 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
 (original)
+++ 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
 Sun Feb  4 08:37:37 2018
@@ -138,6 +138,7 @@ public class PDVisibleSigBuilder impleme
         acroForm.setAppendOnly(true);
         acroFormDict.setDirect(true);
         acroFormFields.add(signatureField);
+        // WTF sylfaen? 
         acroForm.setDefaultAppearance("/sylfaen 0 Tf 0 g");
         pdfStructure.setAcroFormFields(acroFormFields);
         pdfStructure.setAcroFormDictionary(acroFormDict);
@@ -160,21 +161,6 @@ public class PDVisibleSigBuilder impleme
         LOG.info("Signature rectangle has been created");
     }
 
-    /**
-     * {@inheritDoc }
-     *
-     * @deprecated use {@link 
#createAffineTransform(java.awt.geom.AffineTransform) }
-     */
-    @Override
-    @Deprecated
-    public void createAffineTransform(byte[] params)
-    {
-        AffineTransform transform = new AffineTransform(params[0], params[1], 
params[2],
-                                                        params[3], params[4],  
params[5]);
-        pdfStructure.setAffineTransform(transform);
-        LOG.info("Matrix has been added");
-    }
-
     @Override
     public void createAffineTransform(AffineTransform affineTransform)
     {
@@ -202,25 +188,6 @@ public class PDVisibleSigBuilder impleme
         LOG.info("Visible Signature Image has been created");
     }
 
-    /**
-     * {@inheritDoc }
-     * 
-     * @deprecated use {@link #createFormatterRectangle(int[]) 
createFormatterRectangle(int[])}
-     */
-    @Override
-    @Deprecated
-    public void createFormatterRectangle(byte[] params)
-    {
-        PDRectangle formatterRectangle = new PDRectangle();
-        formatterRectangle.setLowerLeftX(Math.min(params[0],params[2]));
-        formatterRectangle.setLowerLeftY(Math.min(params[1],params[3]));
-        formatterRectangle.setUpperRightX(Math.max(params[0],params[2]));
-        formatterRectangle.setUpperRightY(Math.max(params[1],params[3]));
-
-        pdfStructure.setFormatterRectangle(formatterRectangle);
-        LOG.info("Formatter rectangle has been created");
-    }
-
     @Override
     public void createFormatterRectangle(int[] params)
     {

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java?rev=1823077&r1=1823076&r2=1823077&view=diff
==============================================================================
--- 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
 (original)
+++ 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
 Sun Feb  4 08:37:37 2018
@@ -453,25 +453,6 @@ public class PDVisibleSignDesigner
 
     /**
      * @return Affine Transform parameters for PDF Matrix
-     * 
-     * @deprecated use {@link #getTransform() }.
-     */
-    @Deprecated
-    public byte[] getAffineTransformParams()
-    {
-        return new byte[] 
-        {
-            (byte) affineTransform.getScaleX(), 
-            (byte) affineTransform.getShearY(), 
-            (byte) affineTransform.getShearX(), 
-            (byte) affineTransform.getScaleY(), 
-            (byte) affineTransform.getTranslateX(), 
-            (byte) affineTransform.getTranslateY()
-        };
-    }
-
-    /**
-     * @return Affine Transform parameters for PDF Matrix
      */
     public AffineTransform getTransform()
     {
@@ -480,21 +461,6 @@ public class PDVisibleSignDesigner
 
     /**
      * 
-     * @param affineTransformParams
-     * @return Visible Signature Configuration Object
-     * @deprecated use {@link #transform}.
-     */
-    @Deprecated
-    public PDVisibleSignDesigner affineTransformParams(byte[] 
affineTransformParams)
-    {
-        affineTransform = new AffineTransform(affineTransformParams[0], 
affineTransformParams[1],
-                affineTransformParams[2], affineTransformParams[3],
-                affineTransformParams[4], affineTransformParams[5]);
-        return this;
-    }
-
-    /**
-     * 
      * @param affineTransform
      * @return Visible Signature Configuration Object
      */
@@ -503,16 +469,6 @@ public class PDVisibleSignDesigner
         this.affineTransform = new AffineTransform(affineTransform);
         return this;
     }
-    
-    /**
-     * @return formatter PDRectangle parameters
-     * @deprecated use {@link #getFormatterRectangleParameters() 
getFormatterRectangleParameters()}
-     */
-    @Deprecated
-    public byte[] getFormatterRectangleParams()
-    {
-        return formatterRectangleParams;
-    }
 
     /**
      * 
@@ -524,20 +480,6 @@ public class PDVisibleSignDesigner
     }
 
     /**
-     * Sets formatter PDRectangle
-     * 
-     * @param formatterRectangleParams
-     * @return Visible Signature Configuration Object
-     * @deprecated use {@link #formatterRectangleParameters(int[]) 
formatterRectangleParameters(int[])}
-     */
-    @Deprecated
-    public PDVisibleSignDesigner formatterRectangleParams(byte[] 
formatterRectangleParams)
-    {
-        this.formatterRectangleParams = formatterRectangleParams;
-        return this;
-    }
-
-    /**
      * Sets formatter PDRectangle
      * 
      * @param formatterRectangleParameters


Reply via email to