-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
SVG support when generating PDF ? #905
Comments
Same issue. SVG support is really important to build PDFs for printing as images stay sharp. It’s the only vector image format supported by web browsers and epub readers too. |
Here's my lame workaround. I would also like to see SVG support in PDFs. |
+1 Thx @stevepiercy for workaround! |
ReadTheDocs is not supported SVG images in PDF docs. readthedocs/readthedocs.org#905
i found this answer for SVG + LaTeX: http://tex.stackexchange.com/questions/122871/include-svg-images-with-the-svg-package |
Does it work on ReadTheDocs ? |
it doesn't, but it may be that i have another unrelated problem: https://readthedocs.org/builds/isuma-media-players/2875649/ |
i get this:
i think the workaround above implied there was a generated PNG version, which i don't have / want to bother with here... |
well, i ended up doing that: i can't make this work SVG in here, even without RFTD, it seems like like a sphinx bug as well - i'd be curious to see what's going on on that side. because you can't just i ended up using:
And in my makefile:
When i change the SVG, i do |
Seems like this is a Sphinx issue, not a Read the Docs one. SVG support would be implemented there, not on our side. Their issue tracker is here: https://github.com/sphinx-doc/sphinx |
@ericholscher yet one of the things that was identified in this thread is how Sphinx-only builds would work because they would run the It would be nice if RTD would at least provide a way to generate those files on the fly... I opened an issue in Sphinx re. SVG support regardless. |
For reference: sphinx-doc/sphinx#1907 |
Thanks!
|
Generation of PDF is broken if the documentation include SVG images.
One workaround is to convert SVG into PDF before processing everything with sphinx, as described there. I successfully implemented that locally. But since readthedocs does not use Makefile, it "skips" the conversion step.
Would it be interesting to support SVG to PDF conversion out of the box for all projects ? That would add step in the build process of reathedocs build server.
Or would another way be preferable ? I suppose we could do something with Virtualenv and
setup.py install
. But I am not very familiar with that, so I'd rather ask first ...The text was updated successfully, but these errors were encountered: