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/05/05 17:29:18 UTC

svn commit: r1794080 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java

Author: tilman
Date: Fri May  5 17:29:18 2017
New Revision: 1794080

URL: http://svn.apache.org/viewvc?rev=1794080&view=rev
Log:
PDFBOX-3778: remove tabs

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java?rev=1794080&r1=1794079&r2=1794080&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java Fri May  5 17:29:18 2017
@@ -667,26 +667,25 @@ public class PDFMergerUtility
     private void mergeAcroForm(PDFCloneUtility cloner, PDAcroForm destAcroForm, PDAcroForm srcAcroForm)
             throws IOException
     {
-
-    	List<PDField> srcFields = srcAcroForm.getFields();
+        List<PDField> srcFields = srcAcroForm.getFields();
 
         if (srcFields != null)
         {
-        	// if a form is merged multiple times using PDFBox the newly generated
-        	// fields starting with dummyFieldName may already exist. We need to determine the last unique 
-        	// number used and increment that.
-        	final String prefix = "dummyFieldName";
-        	final int prefixLength = prefix.length();
+            // if a form is merged multiple times using PDFBox the newly generated
+            // fields starting with dummyFieldName may already exist. We need to determine the last unique 
+            // number used and increment that.
+            final String prefix = "dummyFieldName";
+            final int prefixLength = prefix.length();
 
             for (PDField destField : destAcroForm.getFieldTree())
             {
-            	String fieldName = destField.getPartialName();
-            	if (fieldName.startsWith(prefix))
-            	{
-            		nextFieldNum = Math.max(nextFieldNum, Integer.parseInt(fieldName.substring(prefixLength, fieldName.length()))+1);
-            	}
+                String fieldName = destField.getPartialName();
+                if (fieldName.startsWith(prefix))
+                {
+                    nextFieldNum = Math.max(nextFieldNum, Integer.parseInt(fieldName.substring(prefixLength, fieldName.length())) + 1);
+                }
             }
-        	
+
             COSArray destFields = (COSArray) destAcroForm.getCOSObject().getItem(COSName.FIELDS);
             for (PDField srcField : srcAcroForm.getFieldTree())
             {