pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1774960 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
Date Sun, 18 Dec 2016 21:16:29 GMT
Author: tilman
Date: Sun Dec 18 21:16:29 2016
New Revision: 1774960

URL: http://svn.apache.org/viewvc?rev=1774960&view=rev
Log:
PDFBOX-2852: remove obsolete code

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java?rev=1774960&r1=1774959&r2=1774960&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java Sun
Dec 18 21:16:29 2016
@@ -538,8 +538,6 @@ public class PDFTextStripper extends Leg
                     Collections.sort(textList, comparator);
                 }
             }
-            
-            Iterator<TextPosition> textIter = textList.iterator();
 
             startArticle();
             startOfArticle = true;
@@ -549,7 +547,7 @@ public class PDFTextStripper extends Leg
             // the line from presentation form to logical form (if needed).
             List<LineItem> line = new ArrayList<LineItem>();
 
-            textIter = textList.iterator(); // start from the beginning again
+            Iterator<TextPosition> textIter = textList.iterator();
             // PDF files don't always store spaces. We will need to guess where we should
add
             // spaces based on the distances between TextPositions. Historically, this was
done
             // based on the size of the space character provided by the font. In general,
this



Mime
View raw message