Silent option doesn't silence some PDFBox warnings
INFO: To get higher rendering speed on JDK8 or later,
May 30, 2018 3:38:16 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS
INFO: use the option -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider
May 30, 2018 3:38:16 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS
INFO: or call System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider")
via #227
From what I understood spending 5 minutes with the code in Eclipse after running the jar a few times, the output is generated by PDFBox, which uses commons-logging. tabula itself uses slf4j-simple, and I couldn't see the logging settings being changed via the argument that silents the output.
But there's a workaround:
java -jar -Dorg.slf4j.simpleLogger.defaultLogLevel=off -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog tabula-java.jar -i -a 168.994,32.993,381.579,813.874 -c 30,76,260,298,322,355,384,410,436,464,488,514,540,562,590,616,642,668,692,718,742,766,796 -p 8 "$1"
That's basically how you disable commons-logging. Though good to take a look every now and then to see if you are not missing anything important, or properly configure commons-logging to output error/warning/etc.
Hope that helps
Nov 11, 2018 12:40:16 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS INFO: To get higher rendering speed on JDK8 or later, Nov 11, 2018 12:40:16 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS INFO: use the option -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider Nov 11, 2018 12:40:16 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS INFO: or call System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider")