From 9537f58b454a0ebe965bfde666f700c79ed3ab05 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Mon, 14 Mar 2016 15:47:01 +0100 Subject: Allow positioningparamter auto values to overwrite more specific profile values --- .../at/knowcenter/wag/egov/egiz/pdf/TablePos.java | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'pdf-as-lib/src/main/java/at/knowcenter') diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TablePos.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TablePos.java index ce32e467..86e270d0 100644 --- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TablePos.java +++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/pdf/TablePos.java @@ -193,7 +193,10 @@ public class TablePos implements Serializable } this.pos_x = xval; this.autoX = false; - } + } else { + this.pos_x = 0.0f; + this.autoX = true; + } break; } case 'y': { @@ -206,7 +209,10 @@ public class TablePos implements Serializable } this.pos_y = yval; this.autoY = false; - } + } else { + this.pos_y = 0.0f; + this.autoY = true; + } break; } case 'w': { @@ -219,7 +225,10 @@ public class TablePos implements Serializable } this.width = wval; this.autoW = false; - } + } else { + this.width = 0.0f; + this.autoW = true; + } break; } case 'p': { @@ -239,7 +248,11 @@ public class TablePos implements Serializable this.page = pval; this.autoP = false; } - } + } else { + this.page = 0; + this.autoP = true; + this.newpage = false; + } break; } case 'f': { -- cgit v1.2.3