sphinxcontrib-jupyter icon indicating copy to clipboard operation
sphinxcontrib-jupyter copied to clipboard

PDF: Embed Images in PDF pipeline that support SVG

Open mmcky opened this issue 6 years ago • 1 comments

We received the following suggestion via: [email protected].

I think you're absolutely right that SVG cannot be embedded in PDF, directly. But apparently when "exporting" to PDF the Jupyter notebook environment (at least on my Windows setup) uses the open-source Inkscape graphics app (https://inkscape.org/) to convert any SVG-based graphs present in the notebook into a PDF-compatible format. So if you install Inkscape on your system and make the inkscape executable available on PATH, then nbconvert / pandoc should do the rest.

  • [ ] investigate if we can support SVG type graphics in PDF files.

mmcky avatar Aug 06 '19 05:08 mmcky

  • [ ] alternatively does export from matplotlib to pdf write a raster type image? Should we just swap from svg to pdf? But I guess that doesn't work as well for website. We might be able to swap the matplotlib output setting for the pdf pipeline

http://blog.rtwilson.com/how-to-get-nice-vector-graphics-in-your-exported-pdf-ipython-notebooks/

mmcky avatar Aug 06 '19 05:08 mmcky