pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1792311 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntent.java
Date Sat, 22 Apr 2017 17:53:57 GMT
Author: tilman
Date: Sat Apr 22 17:53:56 2017
New Revision: 1792311

URL: http://svn.apache.org/viewvc?rev=1792311&view=rev
Log:
PDFBOX-2852: add default

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntent.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntent.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntent.java?rev=1792311&r1=1792310&r2=1792311&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntent.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntent.java
Sat Apr 22 17:53:56 2017
@@ -56,10 +56,11 @@ public enum RenderingIntent
                 return SATURATION;
             case "Perceptual":
                 return PERCEPTUAL;
+            default:
+                // "If a conforming reader does not recognize the specified name, 
+                // it shall use the RelativeColorimetric intent by default."
+                return RELATIVE_COLORIMETRIC;
         }
-        // "If a conforming reader does not recognize the specified name, 
-        // it shall use the RelativeColorimetric intent by default."
-        return RELATIVE_COLORIMETRIC;
     }
 
     private final String value;



Mime
View raw message