pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1601933 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDColorSpaceFactory.java
Date Wed, 11 Jun 2014 15:43:42 GMT
Author: tilman
Date: Wed Jun 11 15:43:42 2014
New Revision: 1601933

URL: http://svn.apache.org/r1601933
Log:
revert unrelated local change I accidentally committed

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDColorSpaceFactory.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDColorSpaceFactory.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDColorSpaceFactory.java?rev=1601933&r1=1601932&r2=1601933&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDColorSpaceFactory.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDColorSpaceFactory.java
Wed Jun 11 15:43:42 2014
@@ -21,8 +21,6 @@ import java.awt.color.ICC_ColorSpace;
 import java.io.IOException;
 import java.io.OutputStream;
 import java.util.Map;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 
 import org.apache.pdfbox.cos.COSArray;
 import org.apache.pdfbox.cos.COSBase;
@@ -32,6 +30,7 @@ import org.apache.pdfbox.cos.COSObject;
 import org.apache.pdfbox.pdmodel.PDDocument;
 import org.apache.pdfbox.pdmodel.graphics.pattern.PDPatternResources;
 import org.apache.pdfbox.pdmodel.common.PDStream;
+import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 
 /**
  * This class represents a color space in a pdf document.
@@ -42,11 +41,6 @@ import org.apache.pdfbox.pdmodel.common.
 public final class PDColorSpaceFactory
 {
     /**
-     * Logger instance.
-     */
-    private static final Log LOG = LogFactory.getLog(PDColorSpaceFactory.class);
-    
-    /**
      * Private constructor for utility classes.
      */
     private PDColorSpaceFactory()
@@ -112,12 +106,7 @@ public final class PDColorSpaceFactory
             String name = ((COSName)array.getObject( 0 )).getName();
             if( name.equals( PDCalGray.NAME ) )
             {
-                // PDFBOX-1724
-                // https://github.com/mozilla/pdf.js/issues/252
-                LOG.warn("CalGray not implemented, using DeviceGray instead, see PDFBOX-1724");
-                retval = new PDDeviceGray();
-                //TH
-//                retval = new PDCalGray( array );
+                retval = new PDCalGray( array );
             }
             else if( name.equals( PDDeviceRGB.NAME ) )
             {



Mime
View raw message