pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1753608 - in /pdfbox/trunk: examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateCreator.java
Date Wed, 20 Jul 2016 20:54:24 GMT
Author: tilman
Date: Wed Jul 20 20:54:24 2016
New Revision: 1753608

URL: http://svn.apache.org/viewvc?rev=1753608&view=rev
Log:
PDFBOX-3017: remove call that has no effect, add a TODO for later

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateCreator.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java?rev=1753608&r1=1753607&r2=1753608&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
Wed Jul 20 20:54:24 2016
@@ -56,7 +56,7 @@ public class CreateVisibleSignature exte
             throws IOException
     {
         visibleSignDesigner = new PDVisibleSignDesigner(filename, imageStream, page);
-        visibleSignDesigner.xAxis(x).yAxis(y).zoom(zoomPercent).signatureFieldName("signature");
+        visibleSignDesigner.xAxis(x).yAxis(y).zoom(zoomPercent);
     }
     
     public void setVisibleSignatureProperties(String name, String location, String reason,
int preferredSize, 

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateCreator.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateCreator.java?rev=1753608&r1=1753607&r2=1753608&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateCreator.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateCreator.java
Wed Jul 20 20:54:24 2016
@@ -98,7 +98,11 @@ public class PDFTemplateCreator
         PDSignatureField pdSignatureField = pdfStructure.getSignatureField();
         
         // create signature
-        pdfBuilder.createSignature(pdSignatureField, page, properties.getSignatureFieldName());
+        //TODO 
+        // The line below has no effect with the CreateVisibleSignature example. 
+        // The signature field is needed as a "holder" for the /AP tree, 
+        // but the /P and /V PDSignatureField entries are ignored by PDDocument.addSignature
+        pdfBuilder.createSignature(pdSignatureField, page, properties.getSignatureFieldName());

        
         // that is /AcroForm/DR entry
         pdfBuilder.createAcroFormDictionary(acroForm, pdSignatureField);



Mime
View raw message