Hello Danny,
There’s no need to use the outdated ML Office Toolkit because pptx file is
zipped xml.
You can use XQuery to quickly parse the XML to suite your needs.
Here’s a short code snippet to read the pptx file.
declare namespace zip="xdmp:zip";
let $zipfile := "/tmp/test1.pptx"
let $doc := xdmp:document-get($zipfile)
let $docs :=
for $x in xdmp:zip-manifest($doc)//zip:part/text()
return
( $x, xdmp:zip-get($doc, $x) )
return
(fn:count($docs) div 2, $docs)
I have some code posted in my git repo that does something similar for
spreadsheet (xlsx) files.
My Git Repo:
· https://github.com/garyrusso/spreadsheets
· https://github.com/garyrusso/spreadsheets/tree/master/src/app/lib
Gary Russo
Enterprise NoSQL Architect
<http://garyrusso.wordpress.com/> http://garyrusso.wordpress.com
From: [email protected]
[mailto:[email protected]] On Behalf Of Danny Sinang
Sent: Tuesday, March 17, 2015 11:51 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Creating Powerpoint files with ML content
Thanks Rob.
I downloaded the toolkit, but the docs says "The PresentationML functions are
used to manipulate Microsoft Office Open XML documents."
Are there some high-level ML functions that somehow do the same things these
Python functions
<http://www.shengdongzhao.com/shen_blog/how-to-automatically-create-powerpoint-slides-using-python/>
do ?
Regards,
Danny
On Tue, Mar 17, 2015 at 11:14 AM, Rob Szkutak <[email protected]> wrote:
Hi Danny,
Have a look at our PowerPoint Toolkit:
http://developer.marklogic.com/code/marklogic-toolkit-for-powerpoint
Best,
Rob
Rob Szkutak
Associate Consultant
MarkLogic Corporation
[email protected]
Cell +1.716.562.8464 <tel:%2B1.716.562.8464>
www.marklogic.com
_____
From: [email protected]
[[email protected]] on behalf of Danny Sinang
[[email protected]]
Sent: Tuesday, March 17, 2015 10:05 AM
To: general
Subject: [MarkLogic Dev General] Creating Powerpoint files with ML content
Does ML have any API's or functions that create Powerpoint files using content
from Marklogic ?
Regards,
Danny
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general