aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-26 11:02:54 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-26 11:02:54 +0200
commitb797bbb61b2b07242e82812bf2f94e5af1371569 (patch)
tree1e9f6a10f3302bbcb4b194026c0dd10c1bc245e4
parent704022d948b11fd8a03b09c8c82f15b9073aa2ec (diff)
downloadfreenode-live-2017-presentation-b797bbb61b2b07242e82812bf2f94e5af1371569.tar
freenode-live-2017-presentation-b797bbb61b2b07242e82812bf2f94e5af1371569.tar.gz
readme update, kill event listeners when printing pdf
-rw-r--r--README.md2
-rw-r--r--js/reveal.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 823bd93..31bb441 100644
--- a/README.md
+++ b/README.md
@@ -585,7 +585,7 @@ Limitations:
Presentations can be exported to PDF via a special print stylesheet. This feature requires that you use [Google Chrome](http://google.com/chrome).
Here's an example of an exported presentation that's been uploaded to SlideShare: http://www.slideshare.net/hakimel/revealjs-13872948.
-1. Open your presentation with [css/print/pdf.css](https://github.com/hakimel/reveal.js/blob/master/css/print/pdf.css) included on the page. The default index HTML lets you add *print-pdf* anywhere in the query to include the stylesheet, for example: [lab.hakim.se/reveal-js?print-pdf](http://lab.hakim.se/reveal-js?print-pdf).
+1. Open your presentation with `print-pdf` included anywhere in the query string. This triggers the default index HTML to load the PDF print stylesheet ([css/print/pdf.css](https://github.com/hakimel/reveal.js/blob/master/css/print/pdf.css)). You can test this with [lab.hakim.se/reveal-js?print-pdf](http://lab.hakim.se/reveal-js?print-pdf).
2. Open the in-browser print dialog (CMD+P).
3. Change the **Destination** setting to **Save as PDF**.
4. Change the **Layout** to **Landscape**.
diff --git a/js/reveal.js b/js/reveal.js
index 0ede8de..55a10a2 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -335,6 +335,7 @@ var Reveal = (function(){
// Special setup and config is required when printing to PDF
if( isPrintingPDF() ) {
+ removeEventListeners();
setupPDF();
}