aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf/PDFArray.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFArray.java')
-rw-r--r--src/java/org/apache/fop/pdf/PDFArray.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFArray.java b/src/java/org/apache/fop/pdf/PDFArray.java
index ec713b313..466ad7d6a 100644
--- a/src/java/org/apache/fop/pdf/PDFArray.java
+++ b/src/java/org/apache/fop/pdf/PDFArray.java
@@ -69,6 +69,20 @@ public class PDFArray extends PDFObject {
/**
* Create an array object.
* @param parent the array's parent if any
+ * @param values the actual array wrapped by this object
+ */
+ public PDFArray(PDFObject parent, double[] values) {
+ /* generic creation of PDF object */
+ super(parent);
+
+ for (int i = 0, c = values.length; i < c; i++) {
+ this.values.add(new Double(values[i]));
+ }
+ }
+
+ /**
+ * Create an array object.
+ * @param parent the array's parent if any
* @param values the actual values wrapped by this object
*/
public PDFArray(PDFObject parent, Collection values) {