readme update, kill event listeners when printing pdf
This commit is contained in:
parent
704022d948
commit
b797bbb61b
2 changed files with 2 additions and 1 deletions
|
@ -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).
|
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.
|
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).
|
2. Open the in-browser print dialog (CMD+P).
|
||||||
3. Change the **Destination** setting to **Save as PDF**.
|
3. Change the **Destination** setting to **Save as PDF**.
|
||||||
4. Change the **Layout** to **Landscape**.
|
4. Change the **Layout** to **Landscape**.
|
||||||
|
|
|
@ -335,6 +335,7 @@ var Reveal = (function(){
|
||||||
|
|
||||||
// Special setup and config is required when printing to PDF
|
// Special setup and config is required when printing to PDF
|
||||||
if( isPrintingPDF() ) {
|
if( isPrintingPDF() ) {
|
||||||
|
removeEventListeners();
|
||||||
setupPDF();
|
setupPDF();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue