diff options
author | Christian Maierhofer <cmaierhofer@iaik.tugraz.at> | 2015-04-21 14:17:56 +0200 |
---|---|---|
committer | Christian Maierhofer <cmaierhofer@iaik.tugraz.at> | 2015-04-21 14:17:56 +0200 |
commit | 78f2fe168d7258af1e40509105ba4ed495606a4e (patch) | |
tree | d2f0ec110b4d885e9dc0e28e173456a6b4b46c68 /pdf-as-pdfbox/src/main | |
parent | 541f9cbc07355d53b8eba9e1f3576d928b114bdb (diff) | |
download | pdf-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')
-rw-r--r-- | pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java | 6 |
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; } |