Skip to content
Discussion options

You must be logged in to vote

Quarto should now handle SVG image in PDF output format, by converting the SVG file to PDF file for inclusion. This is a new feature of Quarto 1.3 and it requires rsvg-convert CLI tool.

This is documented for now a 1.3 release feature : https://quarto.org/docs/prerelease/1.3/pdf.html#svg-images with some indication on how to install rsvg-convert for each OS.

Taking the example from @kjohnsen at #3283 (comment)

---
title: Testing SVG
format: pdf
---

# hello there

![test SVG](test.svg)

with test.svg being

<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
  <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>

This should render without err…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@rhwrhw
Comment options

@compleathorseplayer
Comment options

Comment options

You must be logged in to vote
3 replies
@compleathorseplayer
Comment options

@kjohnsen
Comment options

@cderv
Comment options

cderv Apr 3, 2023
Maintainer

Comment options

You must be logged in to vote
4 replies
@cderv
Comment options

cderv Apr 3, 2023
Maintainer

@hillyuan
Comment options

@cderv
Comment options

cderv Apr 3, 2023
Maintainer

@hillyuan
Comment options

Comment options

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