pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1794080 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
Date Fri, 05 May 2017 17:29:18 GMT
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())
             {



Mime
View raw message