How to place CDF file in Microsoft Word, Powerpoint or in interactive PDF file?



I would like to create a presentation for my lecture in which I would use Mathematica CDF files. Let's say I want to have such interactive content:

Manipulate[Plot[Sin[x (1 + a x)], {x, 0, 6}], {a, 0, 2}]

How can I place it in Word, Powerpoint or in Adobe PDF (I can use Adobe Acrobat) so it is usable? Usable - means not showed as an icon.


Posted 2013-09-18T05:43:46.993

Reputation: 2 390


Strongly related: Can we show some Dynamics/CDF in PowerPoint or Keynote? (the answer is: YES!)

– Alexey Popkov – 2013-09-18T07:01:38.180

@AlexeyPopkov I'm a bit surprised Wolfram Research doesn't mention this option. I haven't really played with Office, but had a hunch those tools would have relatively strong HTML embedding support. Can write up an answer demonstrating this? – kirma – 2013-09-18T07:22:45.887



You can't. You can combine CDFs and content generated by other tools on web pages, though.

From Frequently Asked Questions about the Computable Document Format (CDF) (Wolfram Research):

Do CDFs plug in to Microsoft Office documents or PDFs?

Currently, the CDF Player plugin only supports web browsers. We are exploring the same capabilities for a number of other applications. Contact us for more details when CDF support for other applications becomes available.

Considering size of the Microsoft Office ecosystem, there is probably either a feature or an external tool that allows to export custom HTML (which is also used around CDF embedding on the Web) on spots defined in the Word document. This could enable creating CDF embedding in exported HTML, although something like only the link would be visible while editing the document in Word. This is probably a question for another forum...


Posted 2013-09-18T05:43:46.993

Reputation: 13 550

Can notebook be placed in such file? Assuming I have a Mathematica installed on the same machine as the file I want to view? – Misery – 2013-09-18T06:00:41.470


@Misery Browsers support links to local files by file URI scheme. Modern browsers also support embedding element data using data URI scheme, but I have no idea how well CDF plugin works with that.

– kirma – 2013-09-18T06:25:45.297


You can install the LiveWeb plugin for PowerPoint which allows to embed a live webpage into a slide. Now you should prepare an HTML page with emdedded CDF object (here and here you can find old instructions how to do this, but probably there is easier way now) and embed it into a PowerPoint slide. People say that it works surprisingly well and you maintain full interactivity.

Here is how this Demonstration looks in PowerPoint 2003 after pressing F5:


Full interactivity is maintained: you can scroll the page, interact with embedded CDF object and follow hyperlinks.

Alexey Popkov

Posted 2013-09-18T05:43:46.993

Reputation: 50 220

1Even if this wouldn't strictly count as a solution, I'd hope it to be a workaround worthy of an accepted answer. – kirma – 2013-09-24T21:29:44.463