reveal.js icon indicating copy to clipboard operation
reveal.js copied to clipboard

Print to pdf and ignore some section

Open Anth06ny opened this issue 2 years ago • 3 comments

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 ?

Anth06ny avatar Jun 10 '22 17:06 Anth06ny

https://revealjs.com/slide-visibility/

Martinomagnifico avatar Jun 12 '22 06:06 Martinomagnifico

Hum, what i want is more complicated, with this option section are not visible all time. I just want no visible in pdf.

Anth06ny avatar Jun 12 '22 11:06 Anth06ny

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>

CruzR avatar Dec 04 '23 17:12 CruzR