aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at/knowcenter/wag
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-28 11:04:46 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-28 11:04:46 +0100
commit2b70ab18a97dd248d478d985ae602bd7e3a9d320 (patch)
tree32ec7e5d1b327f4b356f404d55d071c444a06a2e /pdf-as-pdfbox/src/main/java/at/knowcenter/wag
parent48f8e5362fa6c7b2f0a708e2dd61cac1dd366397 (diff)
downloadpdf-as-4-2b70ab18a97dd248d478d985ae602bd7e3a9d320.tar.gz
pdf-as-4-2b70ab18a97dd248d478d985ae602bd7e3a9d320.tar.bz2
pdf-as-4-2b70ab18a97dd248d478d985ae602bd7e3a9d320.zip
Logging Error Levels adapted
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/knowcenter/wag')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java7
1 files changed, 6 insertions, 1 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 84574b41..5a3711a4 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
@@ -234,7 +234,12 @@ public class PDFPage extends PDFTextStripper {
// this depicts the current end of path-related page content
float lowerBoundYPositionFromTop;
- PDRectangle boundaryBox = this.getCurrentPage().findMediaBox();
+ PDRectangle boundaryBox = this.getCurrentPage().findCropBox();
+
+ if(boundaryBox == null) {
+ boundaryBox = this.getCurrentPage().findMediaBox();
+ }
+
float pageHeight;
switch (this.getCurrentPage().findRotation()) {