Skip to content

{Solved}: How to export to PNG with background #1124

Closed Answered by ahandsel
ahandsel asked this question in Q&A
Discussion options

You must be logged in to vote

Solution

Export Slidev to PDF with background

slidev export --per-slide --format pdf

Export Slidev to PNG with background

slidev export --per-slide --format png

Context

So it seems that by default, the Slidev export function does not render the background styling (PNG or SVG).
So then, by using the --per-slide option, slides are rendered individually and include all information.

Big Thanks to 0phoff

Thank you @0phoff for pointing out that Slidev's export has more options than specified in the https://sli.dev/

Appendix - Slidev Export Options

❯ slidev export --help
slidev export [entry..]

Export slides to PDF

Positionals:
  entry  path to the slides markdown entry        [array] [default: "

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahandsel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant