reveal.js
reveal.js copied to clipboard
Print to pdf and ignore some section
Hello,
i use reveal and really love it. But some company ask me pdf. So i need to make it pretty. But it's possible to ignore some section with a class tag on them ?
https://revealjs.com/slide-visibility/
Hum, what i want is more complicated, with this option section are not visible all time. I just want no visible in pdf.
I recently had the same problem, this worked for me (except in Firefox, which does not support :has()
yet):
<style>
@media print {
.pdf-page:has(> [data-noprint]) { display: none !important; }
}
</style>
...
<section data-noprint>You won't see me in the PDF export!</section>