From 19188205de20c6c7e219c01482e897a880e42a7b Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 9 Nov 2016 11:56:55 +0100 Subject: [PATCH] add pdf-ready event; dispatched when the presentation is laid out and ready to print --- js/reveal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/reveal.js b/js/reveal.js index 861059c..28aa400 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -714,6 +714,9 @@ fragment.classList.add( 'visible' ); } ); + // Notify subscribers that the PDF layout is good to go + dispatchEvent( 'pdf-ready' ); + } /**