Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior between browser and PDF export #1860

Closed
NN708 opened this issue Sep 10, 2024 · 4 comments
Closed

Inconsistent behavior between browser and PDF export #1860

NN708 opened this issue Sep 10, 2024 · 4 comments

Comments

@NN708
Copy link

NN708 commented Sep 10, 2024

Describe the bug

When creating a slide full of content using slidev-theme-neversink, the content is visible in the browser but disappears when exported to a PDF file.

Minimal reproduction

  1. Create a slides.md file with the following content:

    ---
    theme: neversink
    layout: top-title-two-cols
    color: amber
    ---
    
    :: title ::
    
    # Slide 1
    
    :: left ::
    
    + Slide 1
    + Slide 1
    + Slide 1
    + Slide 1
    + Slide 1
    + Slide 1
    + Slide 1
    + Slide 1
    + Slide 1
    + Slide 1
    
    
    :: right ::
    
    + Slide 1
    
    ---
    layout: top-title
    color: amber
    ---
    
    :: title ::
    
    # Slide 2
    
    :: content ::
    
    Slide 2
  2. Run the command slidev export.

  3. Open the generated file slides-export.pdf.

slides-export

Environment

  • Slidev version: 0.49.29
  • Browser: Vivaldi 6.9.3447.37
  • OS: Ubuntu 22.04.3
@KermanX
Copy link
Member

KermanX commented Sep 11, 2024

Maybe adding some wait times (https://sli.dev/guide/exporting#wait) will solve this

@NN708
Copy link
Author

NN708 commented Sep 11, 2024

Maybe adding some wait times (https://sli.dev/guide/exporting#wait) will solve this

Thanks for your suggestion. I tried adding --wait 10000, but unfortunately, it didn't resolve the issue.

Additionally, I noticed that the content exports correctly with --format pptx or --format png, but the issue persists with the PDF format.

@KermanX
Copy link
Member

KermanX commented Sep 12, 2024

slidev --export --per-slide works. Closing this issue because the problem seems to be in the theme.

@gureckis
Copy link
Contributor

yes it is the theme probably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants