aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-02-11 08:19:04 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-02-11 08:19:04 +0100
commit6d416edf737b9899aef7194aa66c35103dba07ce (patch)
tree25507345cd1e66a005c36e4021fba1bb57d56311 /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib
parent5ea41481c10aa43ab1df5e0b7ba0c18c3262c9eb (diff)
downloadpdf-as-4-6d416edf737b9899aef7194aa66c35103dba07ce.tar.gz
pdf-as-4-6d416edf737b9899aef7194aa66c35103dba07ce.tar.bz2
pdf-as-4-6d416edf737b9899aef7194aa66c35103dba07ce.zip
Support rotation of the signature block by r attribute in pos string
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/positioning/Positioning.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/positioning/Positioning.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/positioning/Positioning.java
index da7da772..e0be68ee 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/positioning/Positioning.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/positioning/Positioning.java
@@ -156,7 +156,7 @@ public class Positioning {
{
page++;
}
- return new PositioningInstruction(make_new_page, page, pos_x, pos_y);
+ return new PositioningInstruction(make_new_page, page, pos_x, pos_y, pos.rotation);
}
// pos_y is auto
if (make_new_page)
@@ -164,7 +164,7 @@ public class Positioning {
// ignore footer in new page
page++;
pos_y = page_height - SIGNATURE_MARGIN_VERTICAL;
- return new PositioningInstruction(make_new_page, page, pos_x, pos_y);
+ return new PositioningInstruction(make_new_page, page, pos_x, pos_y, pos.rotation);
}
// up to here no checks have to be made if Tablesize and Pagesize are fit
// Now we have to getfreespace in page and reguard footerline
@@ -188,7 +188,7 @@ public class Positioning {
// no text --> SIGNATURE_BORDER
pos_y = page_height - SIGNATURE_MARGIN_VERTICAL;
}
- return new PositioningInstruction(make_new_page, page, pos_x, pos_y);
+ return new PositioningInstruction(make_new_page, page, pos_x, pos_y, pos.rotation);
}
final float page_length = pre_page_length;
// we do have text take SIGNATURE_MARGIN
@@ -206,7 +206,7 @@ public class Positioning {
// no text --> SIGNATURE_BORDER
pos_y = page_height - SIGNATURE_MARGIN_VERTICAL;
}
- return new PositioningInstruction(make_new_page, page, pos_x, pos_y);
+ return new PositioningInstruction(make_new_page, page, pos_x, pos_y, pos.rotation);
} finally {
if (pdfDataSource != null) {
try {