aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/pdf/PDFPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/pdf/PDFPage.java')
-rw-r--r--src/org/apache/fop/pdf/PDFPage.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/org/apache/fop/pdf/PDFPage.java b/src/org/apache/fop/pdf/PDFPage.java
index 8cef07787..fa958cce4 100644
--- a/src/org/apache/fop/pdf/PDFPage.java
+++ b/src/org/apache/fop/pdf/PDFPage.java
@@ -44,6 +44,16 @@ public class PDFPage extends PDFResourceContext {
protected int pageheight;
/**
+ * Duration to display page
+ */
+ protected int duration = -1;
+
+ /**
+ * Transition dictionary
+ */
+ protected TransitionDictionary trDictionary = null;
+
+ /**
* create a /Page object
*
* @param number the object's number
@@ -101,6 +111,11 @@ public class PDFPage extends PDFResourceContext {
this.parent = parent.referencePDF();
}
+ public void setTransition(int dur, TransitionDictionary tr) {
+ duration = dur;
+ trDictionary = tr;
+ }
+
/**
* represent this object as PDF
*
@@ -119,6 +134,12 @@ public class PDFPage extends PDFResourceContext {
if (this.annotList != null) {
sb = sb.append("/Annots " + this.annotList.referencePDF() + "\n");
}
+ if (this.duration != -1) {
+ sb = sb.append("/Dur " + this.duration + "\n");
+ }
+ if (this.trDictionary != null) {
+ sb = sb.append("/Trans << " + this.trDictionary.getDictionary() + " >>\n");
+ }
sb = sb.append(">>\nendobj\n");
return sb.toString().getBytes();