animotionjs / animotion

🪄 Create beautiful presentations with Svelte
https://animotion.pages.dev
MIT License
1.37k stars 41 forks source link

Total slide numbers not displaying on pdf #19

Closed MarvinZein closed 11 months ago

MarvinZein commented 11 months ago

Hello,

in the config.ts in the Reveal.Options object, when I set the following:

slideNumber: 'c/t', showSlideNumber: 'all'

It only displays the total number of slides in the normal view, but not on the printed pdf when I go to http://localhost:5173/?print-pdf and print to pdf

mattcroat commented 11 months ago

I never used this feature but it looks right to me. The PDF Export section of the Reveal docs mentions it only works in Chromium based browsers.

image

MarvinZein commented 11 months ago

Yes, that is also what I get. It only shows the current slide. But I want it to show the current silde / total number of slides (like 1/3 , 2/3, 3/3). That it only does in the normal view, but not in the "pdf view". That is what the 'c/t' is for.

mattcroat commented 11 months ago

@marvwebdev It might be because I haven't included the print styles but I'm going to have a look.

mattcroat commented 11 months ago

@marvwebdev I tried it and it made no difference but I found this response https://github.com/hakimel/reveal.js/issues/3133#issuecomment-1087565582 which suggests it doesn't work when printing, so I don't know.