aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf
diff options
context:
space:
mode:
authorChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2015-04-21 14:17:56 +0200
committerChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2015-04-21 14:17:56 +0200
commit78f2fe168d7258af1e40509105ba4ed495606a4e (patch)
treed2f0ec110b4d885e9dc0e28e173456a6b4b46c68 /pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf
parent541f9cbc07355d53b8eba9e1f3576d928b114bdb (diff)
downloadpdf-as-4-78f2fe168d7258af1e40509105ba4ed495606a4e.tar.gz
pdf-as-4-78f2fe168d7258af1e40509105ba4ed495606a4e.tar.bz2
pdf-as-4-78f2fe168d7258af1e40509105ba4ed495606a4e.zip
automatic positioning
set max_char_pos to effective page height if the last last character on page already reaches the footer, so that a new page is created for the signature block
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java b/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java
index fab63e2f..a7aaf2df 100644
--- a/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java
+++ b/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java
@@ -329,10 +329,8 @@ public class PDFPage extends PDFTextStripper {
current_y = text.getY();
}
- if (current_y > this.effectivePageHeight) {
- // logger_.debug("character is below footer_line. footer_line = " +
- // this.footer_line + ", text.character=" + character + ", y=" +
- // current_y);
+ if (current_y > this.effectivePageHeight) {
+ this.max_character_ypos=this.effectivePageHeight;
return;
}