diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-10-03 10:16:14 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-10-03 10:16:14 +0200 |
commit | 707a1511f9771b97bb630cf46d9b9d2c7d222ed9 (patch) | |
tree | 9276ad3625cde80e81af150f3a7513862e5f450f /pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf | |
parent | 1588a927a8f4cd458e673a15ddb9bdb12b0b90af (diff) | |
download | pdf-as-3-707a1511f9771b97bb630cf46d9b9d2c7d222ed9.tar.gz pdf-as-3-707a1511f9771b97bb630cf46d9b9d2c7d222ed9.tar.bz2 pdf-as-3-707a1511f9771b97bb630cf46d9b9d2c7d222ed9.zip |
Fixed whitespace error in pdf text stream
Diffstat (limited to 'pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf')
-rw-r--r-- | pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java index 32a043d..dc13a28 100644 --- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java +++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java @@ -47,6 +47,7 @@ import org.pdfbox.util.PDFTextStripper; import org.pdfbox.util.TextPosition;
import org.pdfbox.util.operator.OperatorProcessor;
+import at.gv.egiz.pdfas.utils.PDFASUtils;
import at.knowcenter.wag.egov.egiz.cfg.ConfigLogger;
import at.knowcenter.wag.egov.egiz.cfg.SettingsReader;
import at.knowcenter.wag.egov.egiz.exceptions.SettingsException;
@@ -306,7 +307,7 @@ public class PDFPage extends PDFTextStripper { }
// store ypos of the char if it is not empty
- if (!character.equals(" ") && current_y > this.max_character_ypos) {
+ if (!PDFASUtils.whiteSpaceTrim(character).isEmpty() && current_y > this.max_character_ypos) {
this.max_character_ypos = current_y;
}
|