From commits-return-13240-apmail-poi-commits-archive=poi.apache.org@poi.apache.org Thu Sep 3 19:13:17 2020 Return-Path: X-Original-To: apmail-poi-commits-archive@locus.apache.org Delivered-To: apmail-poi-commits-archive@locus.apache.org Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by minotaur.apache.org (Postfix) with ESMTP id 5EEBD1AB7A for ; Thu, 3 Sep 2020 19:13:17 +0000 (UTC) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 1C1F04181C for ; Thu, 3 Sep 2020 19:13:17 +0000 (UTC) Received: (qmail 78739 invoked by uid 500); 3 Sep 2020 19:13:17 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 78687 invoked by uid 500); 3 Sep 2020 19:13:16 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 78677 invoked by uid 99); 3 Sep 2020 19:13:16 -0000 Received: from Unknown (HELO svn01-us-east.apache.org) (13.90.137.153) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2020 19:13:16 +0000 Received: from svn01-us-east.apache.org (svn01-us-east.apache.org [127.0.0.1]) by svn01-us-east.apache.org (ASF Mail Server at svn01-us-east.apache.org) with ESMTP id 920D417DB32 for ; Thu, 3 Sep 2020 19:13:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1881416 - in /poi: site/src/documentation/content/xdocs/components/slideshow/ppt-wmf-emf-renderer.xml trunk/build.xml trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java Date: Thu, 03 Sep 2020 19:13:16 -0000 To: commits@poi.apache.org From: kiwiwings@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20200903191316.920D417DB32@svn01-us-east.apache.org> Author: kiwiwings Date: Thu Sep 3 19:13:16 2020 New Revision: 1881416 URL: http://svn.apache.org/viewvc?rev=1881416&view=rev Log: add "provided" jars to binary dist bundle add instruction to pptx rendering case-insensitive argument handling in PPTX2PNG Modified: poi/site/src/documentation/content/xdocs/components/slideshow/ppt-wmf-emf-renderer.xml poi/trunk/build.xml poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java Modified: poi/site/src/documentation/content/xdocs/components/slideshow/ppt-wmf-emf-renderer.xml URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/components/slideshow/ppt-wmf-emf-renderer.xml?rev=1881416&r1=1881415&r2=1881416&view=diff ============================================================================== --- poi/site/src/documentation/content/xdocs/components/slideshow/ppt-wmf-emf-renderer.xml (original) +++ poi/site/src/documentation/content/xdocs/components/slideshow/ppt-wmf-emf-renderer.xml Thu Sep 3 19:13:16 2020 @@ -58,6 +58,19 @@ -charset sets the default charset to be used, defaults to Windows-1252 ]]> + +
+ Instructions to run +

Download the current nightly

+

Download the "provided" jars (batik-all, + xml-apis-ext, + xmlgraphics-commons) and put them in the directory "auxiliary".

+

Execute the java command (Unix-paths needs to be replaced for Windows - use "-charset" for non-western WMF/EMFs):

+ + java -cp poi-5.0.0-SNAPSHOT.jar:poi-ooxml-5.0.0-SNAPSHOT.jar:poi-ooxml-schemas-5.0.0-SNAPSHOT.jar:poi-scratchpad-5.0.0-SNAPSHOT.jar:lib/*:ooxml-lib/*:auxiliary/* org.apache.poi.xslf.util.PPTX2PNG -format png -fixside long -scale 1000 -charset GBK -outdir . file.pptx + +
+
Integrate rendering in your code Modified: poi/trunk/build.xml URL: http://svn.apache.org/viewvc/poi/trunk/build.xml?rev=1881416&r1=1881415&r2=1881416&view=diff ============================================================================== --- poi/trunk/build.xml (original) +++ poi/trunk/build.xml Thu Sep 3 19:13:16 2020 @@ -2076,11 +2076,15 @@ under the License. - + - + + + + + Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java?rev=1881416&r1=1881415&r2=1881416&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java Thu Sep 3 19:13:16 2020 @@ -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": --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org