pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1768777 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
Date Tue, 08 Nov 2016 20:15:18 GMT
Author: tilman
Date: Tue Nov  8 20:15:18 2016
New Revision: 1768777

URL: http://svn.apache.org/viewvc?rev=1768777&view=rev
Log:
PDFBOX-3560: fill array so that getCOSObject() works

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java?rev=1768777&r1=1768776&r2=1768777&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
Tue Nov  8 20:15:18 2016
@@ -20,6 +20,7 @@ import java.awt.image.BufferedImage;
 import java.awt.image.WritableRaster;
 import java.io.IOException;
 
+import org.apache.pdfbox.cos.COSArray;
 import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.pdmodel.PDResources;
 import org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern;
@@ -45,6 +46,8 @@ public final class PDPattern extends PDS
     public PDPattern(PDResources resources)
     {
         this.resources = resources;
+        array = new COSArray();
+        array.add(COSName.PATTERN);
     }
 
     /**
@@ -57,6 +60,9 @@ public final class PDPattern extends PDS
     {
         this.resources = resources;
         this.underlyingColorSpace = colorSpace;
+        array = new COSArray();
+        array.add(COSName.PATTERN);
+        array.add(colorSpace);
     }
 
     @Override



Mime
View raw message