pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1829736 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java
Date Sat, 21 Apr 2018 18:12:38 GMT
Author: tilman
Date: Sat Apr 21 18:12:37 2018
New Revision: 1829736

URL: http://svn.apache.org/viewvc?rev=1829736&view=rev
Log:
PDFBOX-4071: use KCMS when available

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java?rev=1829736&r1=1829735&r2=1829736&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java (original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java Sat
Apr 21 18:12:37 2018
@@ -68,6 +68,17 @@ public class Validator_A1b
             System.exit(1);
         }
 
+        try
+        {
+            // force KCMS (faster than LCMS) if available
+            Class.forName("sun.java2d.cmm.kcms.KcmsServiceProvider");
+            System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider");
+        }
+        catch (ClassNotFoundException e)
+        {
+            // ignore
+        }
+
         // is output xml ?
         int posFile = 0;
         boolean outputXml = "xml".equals(args[posFile]);



Mime
View raw message