Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Keynote (5.1) export to html issue

Keynote 5.1 export to html uses a DHTML player.Very few browsers seem to support this DHTML player.... Is there any way to revert to the much simpler html export from prior Keynote versions?

MacBook Pro, Mac OS X (10.7.1)

Posted on Sep 2, 2011 2:21 PM

Reply
17 replies

Dec 20, 2011 12:49 PM in response to Kris Seago1

I have only recently tried exporting from Keynote 5.1 to html, and have experienced the same issue that several others have reported on a variety of site. The html document will not load in a browser (just a black screen with a spinning wheel). I have tried both Safari and Firefox. This seems to be a serious issue with Keynote 9 because I have used Keynote 8 to export the same slide show and it functions correctly.


Can someone from Apple respond to this issue? It is of great importance for many reasons. My reason is that this is how I load lecture presentations onto the web for students to view!

Dec 20, 2011 7:07 PM in response to Baculo

I have noticed that if I export my Keynote 5.1.1 file as a web site and upload to the server owned by the college where I work, the web site is not visible (and I get the message, "Slide couldn't be displayed") but if I upload it to a server hosted by BlueHost.com (where I have other web pages), the Keynote slides display fine (in both Safari and Firefox on a Mac).


So I don't think it has anything to do with the browser you are using but rather it depends on the server that is hosting the pages.

Dec 21, 2011 6:59 AM in response to Jerry Johnson

Uploading to a different server is not an option at our university. I suspect this a bug in the way Keynote 9 creates that html documents. Keynote 8 works perfectly.

I do not get any error message "Slide couldn't be displayed". Rather, a black screen with a spinning wheel!

I also do not think it has anything to do with the browser, it is a bug in Keynote.

Dec 21, 2011 7:30 AM in response to Baculo

I used (past tense) Keynote for the same purposes--I posted my Keynote lectures for students to review prior to exams. Keynote 5.1.1 generates a KeynoteDHTMLPlayer that works in the latest versions of Safari and Chrome on a Mac, but not Firefox. I haven't found a browser that plays these files on a Windows machine.


My workaround is to "Print" the Keynote files to PDF (setting print options along the way), select "PDF," "Open PDF in Preview," Export from Preview, apply a "Reduce File Size" Quartz Filter in Preview, correct the file name (removing "Preview of" and quotation marks), save the resulting small PDF, and upload the file to my college's server.


Inelegant at best.

Dec 21, 2011 7:48 AM in response to Jerry Johnson

Our IT people think there is a bug in the application related to files generated inin:

assets/player/ScriptManager.js and assets/fallback/player.js [Ajax.Request((showUrl+"/kpf.json")] They claim that the "/" before kpf.json" needs to be removed.


However, my assets/player folder does not have a file called ScriptManager and adding it did not rescue the slide show. I will also continue to investigate but still hope that Apple will step in and derive a fix!


The suggestion to use a PDF is workable but it is easier simply to use Keynote 8 and generate the html documents there!

May 4, 2012 12:28 PM in response to Jerry Johnson

Most likely the web server is not setup with the correct mimetype (or any mimetype) for the .json file that is part of the package. So the server isn't able to send your browser that file. I had this trouble on our server (running IIS7).


I added a mimetype for .json files (application/json) and then reloaded the page and I no longer had any errors...

May 4, 2012 5:07 PM in response to ThatsUnpossible

Hey, I was surprised to see this show up in my mailbox, but glad to know that someone was still looking at this. Unfortunately, I do not understand what was said in ThatsUnpossible's post. Should I send this post to our IT folks and see if it makes sense to them? Or this is something that I can do on my iMac to the exported file?


Sorry I am just a regular Mac user, not a programmer.

Jul 13, 2012 11:07 AM in response to Baculo

Just encountered this problem. Seems like Baculo was on the right track as the problem seems to be that it's not finding kpf.json. I did some further investigating and found a solution that worked. Instead of just removing the "/" in "/kpf.json", I replaced this whole bit:


showUrl+"/kpf.json"


with this:


"../kpf.json"


Try that and see if it works. I didn't do any of the scriptManager stuff.


Also, this fix only seems to fix firefox and chrome browsers. IE9 still broken for me.

Jul 28, 2013 1:39 PM in response to Kris Seago1

You may be able to solve the problem by running a local web server, without digressing through PDF / Preview or changing code.


(1) In TERMINAL, navigate to the directory where you exported the Keynote into HTML in the first place. This directory will contain an index.html file directly under it.


Thus, if the HTML export is called "keythings", after the prompt ($) in TERMINAL type "cd", as follows:


$ cd


(2) then go to a FINDER window and simply drag the directory noted above into the active line in Terminal, leaving a space between "cd" and the dragged name. Conveniently this will result in a line as follows (without requiring you to type the filepath...and make mistakes):


$ cd /Users/yourname/directoryinquestion


that will move the terminal program's active site into the directory.


(3) Then start the server as follows, again using TERMINAL:


$ python -m SimpleHTTPServer 8888 & <enter>


This will start the internal / local web server. The port-number (here 8888) could be substituted arbitrarily, as long as it doesn't go too low, where there are designated ports for other functions. So you can use 8889 etc.


(4) Go to the BROWSER (Chrome, Safari ...) and type localhost:8888. This will display the contents of index.html, which should automatically bring up the Keynote slides (though without all the extra movement, etc., you may have used), driven by the html code. This HTML can be altered with an editor in the index.html file, resaved, and that can supplement or change the effects, if you need them...using HTML itself, CSS, Javascript etc.


(5) Don't close the Terminal window until you're done with the browser representation of Keynote.


At least this works for me...I hope it is useful.

Keynote (5.1) export to html issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.