diff --git a/src/net/NetPDF/InternalConst.cs b/src/net/NetPDF/InternalConst.cs
index 3386b839..cded3f04 100644
--- a/src/net/NetPDF/InternalConst.cs
+++ b/src/net/NetPDF/InternalConst.cs
@@ -28,6 +28,7 @@ class CLIParam
public const string CommonLoggingConfiguration = "CommonLoggingConfiguration";
public const string LogPath = "LogPath";
public const string FontCachePath = "FontCachePath";
+ public const string UsePureJavaCMYKConversion = "UsePureJavaCMYKConversion";
}
///
diff --git a/src/net/NetPDF/NetPDFCore.cs b/src/net/NetPDF/NetPDFCore.cs
index 5b17bd35..365a86bc 100644
--- a/src/net/NetPDF/NetPDFCore.cs
+++ b/src/net/NetPDF/NetPDFCore.cs
@@ -63,6 +63,11 @@ public override IEnumerable CommandLineArguments
Name = CLIParam.FontCachePath,
Help = "The path where font cache will be stored.",
},
+ new ArgumentMetadata
public virtual string FontCachePath { get { return ApplicationFontCachePath ?? _fontCachePath; } }
+ bool _usePureJavaCMYKConversion;
+ ///
+ /// The log folder
+ ///
+ public virtual bool UsePureJavaCMYKConversion { get { return !ApplicationUsePureJavaCMYKConversion.HasValue ? _usePureJavaCMYKConversion : ApplicationUsePureJavaCMYKConversion.Value; } }
+
///
/// The log4j configuration
///
@@ -224,6 +241,11 @@ protected override IDictionary Options
options.Add("pdfbox.fontcache", FontCachePath);
}
+ if (UsePureJavaCMYKConversion)
+ {
+ options.Add("org.apache.pdfbox.rendering.UsePureJavaCMYKConversion", "true");
+ }
+
return options;
}
}