From: Andreas Beeker Date: Thu, 3 Sep 2020 19:13:16 +0000 (+0000) Subject: add "provided" jars to binary dist bundle X-Git-Tag: before_ooxml_3rd_edition~124 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ea43beeba71a7dd6a12bfb1bc1bcaec7a07d443f;p=poi.git add "provided" jars to binary dist bundle add instruction to pptx rendering case-insensitive argument handling in PPTX2PNG git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881416 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build.xml b/build.xml index b6604fa47a..ab3ab5740d 100644 --- a/build.xml +++ b/build.xml @@ -2076,11 +2076,15 @@ under the License. - + - + + + + + diff --git a/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java b/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java index 07eb12565d..c9336b26c9 100644 --- a/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java +++ b/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java @@ -116,7 +116,7 @@ public final class PPTX2PNG { for (int i = 0; i < args.length; i++) { String opt = (i+1 < args.length) ? args[i+1] : null; - switch (args[i]) { + switch (args[i].toLowerCase(Locale.ROOT)) { case "-scale": if (opt != null) { scale = Float.parseFloat(opt); @@ -164,7 +164,7 @@ public final class PPTX2PNG { fixSide = "long"; } break; - case "-inputType": + case "-inputtype": if (opt != null) { defaultFileType = FileMagic.valueOf(opt); i++; @@ -172,13 +172,13 @@ public final class PPTX2PNG { defaultFileType = FileMagic.OLE2; } break; - case "-textAsShapes": + case "-textasshapes": textAsShapes = true; break; - case "-ignoreParse": + case "-ignoreparse": ignoreParse = true; break; - case "-extractEmbedded": + case "-extractembedded": extractEmbedded = true; break; case "-charset":