--- examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java.orig 2018-04-20 13:24:11.753991776 +0100
+++ examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java 2018-04-20 13:25:29.007663876 +0100
@@ -116,8 +116,7 @@
}
// sRGB output intent
- InputStream colorProfile = CreatePDFA.class.getResourceAsStream(
- "/org/apache/pdfbox/resources/pdfa/sRGB.icc");
+ InputStream colorProfile = new java.io.FileInputStream("/usr/share/color/icc/OpenICC/sRGB.icc");
PDOutputIntent intent = new PDOutputIntent(doc, colorProfile);
intent.setInfo("sRGB IEC61966-2.1");
intent.setOutputCondition("sRGB IEC61966-2.1");
--- pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java.orig 2018-04-20 13:26:43.263348702 +0100
+++ pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java 2018-04-20 13:28:29.789896555 +0100
@@ -159,7 +159,7 @@
assertTrue(outputIntents.isEmpty());
// add an OutputIntent
- colorProfile = TestPDDocumentCatalog.class.getResourceAsStream("sRGB.icc");
+ colorProfile = new java.io.FileInputStream("/usr/share/color/icc/OpenICC/sRGB.icc");
// create output intent
PDOutputIntent oi = new PDOutputIntent(doc, colorProfile);
oi.setInfo("sRGB IEC61966-2.1");