You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sphinxcontrib-drawio is an excellent tool, extremely handy when creating images etcetera for documentation. We use Sphinx since it allows us to create documents in different formats using the same source code (*.rst files).
Discovered a minor issue, when exporting images in svg format they look fine in documents exported as HTML whereas the very same images in documents exported as PDF will have a small text stating “Text is not SVG – cannot display”. When exporting images manually from draw.io in svg format and then using those when creating the PDF works fine.
We use simplepdf to create PDF files from .rst source files.
It is not clear to me what settings are used in sphinxcontrib-drawio when exporting in svg format but the only thing I can think of that might cause this is that images and text are not embedded when exporting? Would it be possible to add such a feature?
How it looks in the PDF file when using sphinxcontrib-drawio.
How it looks like in the PDF file when exporting images manually in draw.io and then include those images in the rst files.
The text was updated successfully, but these errors were encountered:
Generally the SVGs exported by draw.io are meant for web embedding, there are some workaround that can be done.
But it has been a while since I touched this project so I need to take some time to remember how it works.
Generally the SVGs exported by draw.io are meant for web embedding, there are some workaround that can be done. But it has been a while since I touched this project so I need to take some time to remember how it works.
Works fine, I also added some if-builder statements that allows me to generate svg files for HTML documentation and png files for PDF documents from the same source.
sphinxcontrib-drawio is an excellent tool, extremely handy when creating images etcetera for documentation. We use Sphinx since it allows us to create documents in different formats using the same source code (*.rst files).
Discovered a minor issue, when exporting images in svg format they look fine in documents exported as HTML whereas the very same images in documents exported as PDF will have a small text stating “Text is not SVG – cannot display”. When exporting images manually from draw.io in svg format and then using those when creating the PDF works fine.
We use simplepdf to create PDF files from .rst source files.
It is not clear to me what settings are used in sphinxcontrib-drawio when exporting in svg format but the only thing I can think of that might cause this is that images and text are not embedded when exporting? Would it be possible to add such a feature?
How it looks in the PDF file when using sphinxcontrib-drawio.
How it looks like in the PDF file when exporting images manually in draw.io and then include those images in the rst files.
The text was updated successfully, but these errors were encountered: