pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1801875 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePatternsPDF.java
Date Thu, 13 Jul 2017 19:48:41 GMT
Author: tilman
Date: Thu Jul 13 19:48:41 2017
New Revision: 1801875

URL: http://svn.apache.org/viewvc?rev=1801875&view=rev
Log:
PDFBOX-3868: revert last commit, other constructor doesn't have mandatory parts

Modified:
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePatternsPDF.java

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePatternsPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePatternsPDF.java?rev=1801875&r1=1801874&r2=1801875&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePatternsPDF.java
(original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePatternsPDF.java
Thu Jul 13 19:48:41 2017
@@ -55,7 +55,7 @@ public final class CreatePatternsPDF
         PDColorSpace patternCS1 = new PDPattern(null, PDDeviceRGB.INSTANCE);
 
         // Table 75 spec
-        PDTilingPattern tilingPattern1 = new PDTilingPattern(doc.getDocument().createCOSStream());
+        PDTilingPattern tilingPattern1 = new PDTilingPattern();
         tilingPattern1.setBBox(new PDRectangle(0, 0, 10, 10));
         tilingPattern1.setPaintType(PDTilingPattern.PAINT_COLORED);
         tilingPattern1.setTilingType(PDTilingPattern.TILING_CONSTANT_SPACING);
@@ -78,7 +78,7 @@ public final class CreatePatternsPDF
         pcs.fill();
 
         // Uncolored pattern - the color is passed later
-        PDTilingPattern tilingPattern2 = new PDTilingPattern(doc.getDocument().createCOSStream());
+        PDTilingPattern tilingPattern2 = new PDTilingPattern();
         tilingPattern2.setBBox(new PDRectangle(0, 0, 10, 10));
         tilingPattern2.setPaintType(PDTilingPattern.PAINT_UNCOLORED);
         tilingPattern2.setTilingType(PDTilingPattern.TILING_NO_DISTORTION);



Mime
View raw message