[MarkLogic Dev General] Creating Powerpoint files with ML content

Gary Russo garyrusso at hotmail.com
Tue Mar 17 09:17:02 PDT 2015


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: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] 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 <rob.szkutak at marklogic.com> 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

rob.szkutak at marklogic.com

Cell +1.716.562.8464 <tel:%2B1.716.562.8464> 

www.marklogic.com

 

  _____  

From: general-bounces at developer.marklogic.com [general-bounces at developer.marklogic.com] on behalf of Danny Sinang [d.sinang at gmail.com]
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
General at developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20150317/a08ed729/attachment-0001.html 


More information about the General mailing list