pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1781118 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
Date Tue, 31 Jan 2017 16:28:57 GMT
Author: tilman
Date: Tue Jan 31 16:28:56 2017
New Revision: 1781118

URL: http://svn.apache.org/viewvc?rev=1781118&view=rev
Log:
PDFBOX-2852: respect naming conventions

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

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=1781118&r1=1781117&r2=1781118&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
Tue Jan 31 16:28:56 2017
@@ -52,7 +52,7 @@ import org.apache.pdfbox.pdmodel.interac
 public class PDVisibleSigBuilder implements PDFTemplateBuilder
 {
     private final PDFTemplateStructure pdfStructure;
-    private static final Log log = LogFactory.getLog(PDVisibleSigBuilder.class);
+    private static final Log LOG = LogFactory.getLog(PDVisibleSigBuilder.class);
 
     /**
      * Constructor, creates PDF template structure.
@@ -60,7 +60,7 @@ public class PDVisibleSigBuilder impleme
     public PDVisibleSigBuilder()
     {
         pdfStructure = new PDFTemplateStructure();
-        log.info("PDF Structure has been created");
+        LOG.info("PDF Structure has been created");
     }
 
     @Override
@@ -69,7 +69,7 @@ public class PDVisibleSigBuilder impleme
         PDPage page = new PDPage(new PDRectangle(properties.getPageWidth(),
                                                  properties.getPageHeight()));
         pdfStructure.setPage(page);
-        log.info("PDF page has been created");
+        LOG.info("PDF page has been created");
     }
 
     /**
@@ -93,7 +93,7 @@ public class PDVisibleSigBuilder impleme
         PDAcroForm theAcroForm = new PDAcroForm(template);
         template.getDocumentCatalog().setAcroForm(theAcroForm);
         pdfStructure.setAcroForm(theAcroForm);
-        log.info("AcroForm has been created");
+        LOG.info("AcroForm has been created");
     }
 
     @Override
@@ -107,7 +107,7 @@ public class PDVisibleSigBuilder impleme
     {
         PDSignatureField sf = new PDSignatureField(acroForm);
         pdfStructure.setSignatureField(sf);
-        log.info("Signature field has been created");
+        LOG.info("Signature field has been created");
     }
 
     @Override
@@ -124,7 +124,7 @@ public class PDVisibleSigBuilder impleme
             pdSignature.setName(signerName);
         }
         pdfStructure.setPdSignature(pdSignature);
-        log.info("PDSignature has been created");
+        LOG.info("PDSignature has been created");
     }
 
     @Override
@@ -141,7 +141,7 @@ public class PDVisibleSigBuilder impleme
         acroForm.setDefaultAppearance("/sylfaen 0 Tf 0 g");
         pdfStructure.setAcroFormFields(acroFormFields);
         pdfStructure.setAcroFormDictionary(acroFormDict);
-        log.info("AcroForm dictionary has been created");
+        LOG.info("AcroForm dictionary has been created");
     }
 
     @Override
@@ -157,7 +157,7 @@ public class PDVisibleSigBuilder impleme
         rect.setLowerLeftX(properties.getxAxis());
         signatureField.getWidgets().get(0).setRectangle(rect);
         pdfStructure.setSignatureRectangle(rect);
-        log.info("Signature rectangle has been created");
+        LOG.info("Signature rectangle has been created");
     }
 
     @Override
@@ -166,7 +166,7 @@ public class PDVisibleSigBuilder impleme
         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");
+        LOG.info("Matrix has been added");
     }
 
     @Override
@@ -179,14 +179,14 @@ public class PDVisibleSigBuilder impleme
         procSetArr.add(COSName.getPDFName("ImageC"));
         procSetArr.add(COSName.getPDFName("ImageI"));
         pdfStructure.setProcSet(procSetArr);
-        log.info("ProcSet array has been created");
+        LOG.info("ProcSet array has been created");
     }
 
     @Override
     public void createSignatureImage(PDDocument template, BufferedImage image) throws IOException
     {
         pdfStructure.setImage(LosslessFactory.createFromImage(template, image));
-        log.info("Visible Signature Image has been created");
+        LOG.info("Visible Signature Image has been created");
     }
 
     @Override
@@ -199,7 +199,7 @@ public class PDVisibleSigBuilder impleme
         formatterRectangle.setLowerLeftY(params[3]);
 
         pdfStructure.setFormatterRectangle(formatterRectangle);
-        log.info("Formatter rectangle has been created");
+        LOG.info("Formatter rectangle has been created");
     }
 
     @Override
@@ -207,7 +207,7 @@ public class PDVisibleSigBuilder impleme
     {
         PDStream holderForm = new PDStream(template);
         pdfStructure.setHolderFormStream(holderForm);
-        log.info("Holder form stream has been created");
+        LOG.info("Holder form stream has been created");
     }
 
     @Override
@@ -215,7 +215,7 @@ public class PDVisibleSigBuilder impleme
     {
         PDResources holderFormResources = new PDResources();
         pdfStructure.setHolderFormResources(holderFormResources);
-        log.info("Holder form resources have been created");
+        LOG.info("Holder form resources have been created");
 
     }
 
@@ -228,7 +228,7 @@ public class PDVisibleSigBuilder impleme
         holderForm.setBBox(formrect);
         holderForm.setFormType(1);
         pdfStructure.setHolderForm(holderForm);
-        log.info("Holder form has been created");
+        LOG.info("Holder form has been created");
 
     }
 
@@ -245,7 +245,7 @@ public class PDVisibleSigBuilder impleme
         signatureField.getWidgets().get(0).setAppearance(appearance);
 
         pdfStructure.setAppearanceDictionary(appearance);
-        log.info("PDF appearance dictionary has been created");
+        LOG.info("PDF appearance dictionary has been created");
     }
 
     @Override
@@ -253,7 +253,7 @@ public class PDVisibleSigBuilder impleme
     {
         PDStream innerFormStream = new PDStream(template);
         pdfStructure.setInnterFormStream(innerFormStream);
-        log.info("Stream of another form (inner form - it will be inside holder form) " +
+        LOG.info("Stream of another form (inner form - it will be inside holder form) " +
                  "has been created");
     }
 
@@ -262,7 +262,7 @@ public class PDVisibleSigBuilder impleme
     {
         PDResources innerFormResources = new PDResources();
         pdfStructure.setInnerFormResources(innerFormResources);
-        log.info("Resources of another form (inner form - it will be inside holder form)"
+
+        LOG.info("Resources of another form (inner form - it will be inside holder form)"
+
                  "have been created");
     }
 
@@ -275,7 +275,7 @@ public class PDVisibleSigBuilder impleme
         innerForm.setBBox(formrect);
         innerForm.setFormType(1);
         pdfStructure.setInnerForm(innerForm);
-        log.info("Another form (inner form - it will be inside holder form) has been created");
+        LOG.info("Another form (inner form - it will be inside holder form) has been created");
     }
 
     @Override
@@ -284,7 +284,7 @@ public class PDVisibleSigBuilder impleme
     {
         COSName innerFormName = holderFormResources.add(innerForm, "FRM");
         pdfStructure.setInnerFormName(innerFormName);
-        log.info("Now inserted inner form inside holder form");
+        LOG.info("Now inserted inner form inside holder form");
     }
 
     @Override
@@ -292,7 +292,7 @@ public class PDVisibleSigBuilder impleme
     {
         PDStream imageFormStream = new PDStream(template);
         pdfStructure.setImageFormStream(imageFormStream);
-        log.info("Created image form stream");
+        LOG.info("Created image form stream");
     }
 
     @Override
@@ -300,7 +300,7 @@ public class PDVisibleSigBuilder impleme
     {
         PDResources imageFormResources = new PDResources();
         pdfStructure.setImageFormResources(imageFormResources);
-        log.info("Created image form resources");
+        LOG.info("Created image form resources");
     }
 
     @Override
@@ -321,7 +321,7 @@ public class PDVisibleSigBuilder impleme
         pdfStructure.setImageForm(imageForm);
         pdfStructure.setImageFormName(imageFormName);
         pdfStructure.setImageName(imageName);
-        log.info("Created image form");
+        LOG.info("Created image form");
     }
 
     @Override
@@ -334,7 +334,7 @@ public class PDVisibleSigBuilder impleme
         innerFormResources.getCOSObject().setItem(COSName.PROC_SET, procSet);
         imageFormResources.getCOSObject().setItem(COSName.PROC_SET, procSet);
         holderFormResources.getCOSObject().setItem(COSName.PROC_SET, procSet);
-        log.info("Inserted ProcSet to PDF");
+        LOG.info("Inserted ProcSet to PDF");
     }
 
     @Override
@@ -354,7 +354,7 @@ public class PDVisibleSigBuilder impleme
         appendRawCommands(pdfStructure.getHolderFormStream().createOutputStream(), holderFormContent);
         appendRawCommands(pdfStructure.getInnerFormStream().createOutputStream(), innerFormContent);
         appendRawCommands(pdfStructure.getImageFormStream().createOutputStream(), imgFormContent);
-        log.info("Injected appearance stream to pdf");
+        LOG.info("Injected appearance stream to pdf");
     }
 
     public void appendRawCommands(OutputStream os, String commands) throws IOException
@@ -367,7 +367,7 @@ public class PDVisibleSigBuilder impleme
     public void createVisualSignature(PDDocument template)
     {
         pdfStructure.setVisualSignature(template.getDocument());
-        log.info("Visible signature has been created");
+        LOG.info("Visible signature has been created");
     }
 
     @Override
@@ -379,7 +379,7 @@ public class PDVisibleSigBuilder impleme
         widgetDict.setItem(COSName.DR, holderFormResources.getCOSObject());
 
         pdfStructure.setWidgetDictionary(widgetDict);
-        log.info("WidgetDictionary has been created");
+        LOG.info("WidgetDictionary has been created");
     }
 
     @Override



Mime
View raw message