Skip to content

Commit 66080ff

Browse files
committed
Move highlight to main doc about pdf images from svg
1 parent 9036c47 commit 66080ff

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docs/output-formats/pdf-basics.qmd

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,26 @@ With fonts with appropriate support, Greek symbols render correctly in headings,
214214
![Greek symbols in a rendered PDF](images/pdf-unicode-greek.png){.border fig-alt="Screenshot of at PDF displaying the Greek symbol alpha in a heading, main text and code cell."}
215215

216216

217-
217+
## SVG Images {#svg-images}
218+
219+
Quarto supports rendering of PDF documents that include SVG files, automatically converting them to PDF images if `rsvg-convert` is available on the system path during rendering.
220+
221+
You can learn more about installing `librsvg`{spellcheck="false"} (which provides `rsvg-convert`{spellcheck="false"}), see <https://wiki.gnome.org/Projects/LibRsvg>. To install on specific platforms:
222+
223+
- On MacOS, use Homebrew: `brew install librsvg`{spellcheck="false"}
224+
- On Linux, tarballs available at: <https://download.gnome.org/sources/librsvg/>
225+
- On Windows, install using chocolatey: `choco install rsvg-convert`{spellcheck="false"}
226+
227+
::: callout-note
228+
## SVG Format for Diagrams
229+
230+
When using Mermaid or Graphviz diagrams in PDF documents, the default PNG format is recommended. While SVG output is possible with `mermaid-format: svg`, it requires `rsvg-convert` and may have rendering issues such as text clipping in diagrams with multi-line labels. See [Diagrams](/docs/authoring/diagrams.qmd#mermaid-formats) for more information.
231+
:::
232+
233+
## Remote Images
234+
235+
When rendering PDFs, Quarto automatically fetches remote image references and properly embeds them within the PDF.
236+
218237
## Citations
219238

220239
{{< include _pdf-citations.md >}}

0 commit comments

Comments
 (0)