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

Some SVGs render without text when targetting PDF #8505

Closed
jakobkmar opened this issue Dec 23, 2022 · 2 comments
Closed

Some SVGs render without text when targetting PDF #8505

jakobkmar opened this issue Dec 23, 2022 · 2 comments
Labels

Comments

@jakobkmar
Copy link

jakobkmar commented Dec 23, 2022

Explain the problem.

Some SVGs will render without text when converting a document (for example a Markdown file) to PDF (in my case using pdflatex as the engine).

This does not affect all SVGs, but I encountered this issue with several different SVGs already.
An example would be this SVG.

To reproduce the issue, use the SVG given above, and include it in a markdown file repro.md like this:

![SVG Issue](pandoc_svg_issue_repro.svg) \

Then run pandoc repro.md -o repro.pdf


Pandoc version?

Reproduced on versions 2.14.0.3 (Fedora) and 2.19.2 (pandoc/latex Docker image).


Possible cause

I am not sure, but does pandoc only use https://gitlab.gnome.org/GNOME/librsvg/ for PDFs? Maybe it has an issue with some SVGs, resulting in the text to be missing?


Related issues

It seems like this issue is the root cause for some filters not working correctly, because their generated SVGs are missing text as well, for example:

@jakobkmar jakobkmar added the bug label Dec 23, 2022
@jgm
Copy link
Owner

jgm commented Dec 23, 2022

See #8176

@tarleb
Copy link
Collaborator

tarleb commented May 5, 2023

Closing in favor of #8176.

@tarleb tarleb closed this as completed May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants