ContaoBayern / reveal.js-for-Contao

Integrate reveal.js in Contao CMS with just a few steps
3 stars 2 forks source link

PDF Export ermöglichen #1

Closed BugBuster1701 closed 8 years ago

BugBuster1701 commented 8 years ago

im fe_page.html5 vor </head> einfügen:

    <!-- Printing and PDF exports -->
    <script>
        var link = document.createElement( 'link' );
        link.rel = 'stylesheet';
        link.type = 'text/css';
        link.href = window.location.search.match( /print-pdf/gi ) ? 'files/reveal/css/print/pdf.css' : 'files/reveal/css/print/paper.css';
        document.getElementsByTagName( 'head' )[0].appendChild( link );
    </script>

Dann funktioniert das wie hier beschrieben in Chrome: https://github.com/hakimel/reveal.js#pdf-export

fiedsch commented 8 years ago

Fixed in #1f6dbf5 von @hella-schu