You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2014/01/02 10:23:15 UTC
svn commit: r1554775 - in /pdfbox/branches/1.8: ./
pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Author: lehmi
Date: Thu Jan 2 09:23:14 2014
New Revision: 1554775
URL: http://svn.apache.org/r1554775
Log:
PDFBOX-1804: fixed handling of textpositions within normalizeAdd as proposed by Andy Phillips
Modified:
pdfbox/branches/1.8/ (props changed)
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Propchange: pdfbox/branches/1.8/
------------------------------------------------------------------------------
Merged /pdfbox/trunk:r1554632,1554774
Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java?rev=1554775&r1=1554774&r2=1554775&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java Thu Jan 2 09:23:14 2014
@@ -1939,7 +1939,7 @@ public class PDFTextStripper extends PDF
{
if (text instanceof WordSeparator)
{
- normalized.add(createWord(lineBuilder.toString(), wordPositions));
+ normalized.add(createWord(lineBuilder.toString(), new ArrayList<TextPosition>(wordPositions)));
lineBuilder = new StringBuilder();
wordPositions.clear();
}