[PATCH 4/7] doc: make pdfdocs: Ensure SVG files are converted to PDF before the compilation of *.tex files

Adriano Carvalho adrianocarvalho.pt at gmail.com
Wed Aug 27 01:47:56 CEST 2025


On Tue, 26 Aug 2025 at 00:00, Tom Rini <trini at konsulko.com> wrote:
>
> On Mon, Aug 25, 2025 at 11:44:47PM +0100, Adriano Carvalho wrote:
>
> > SVG files are not handled directly in the *.tex files.
> > This commit adds sphinxcontrib.inkscapeconverter (from the sphinxcontrib-svg2pdfconverter package) to sphinx's extensions in conf.py to ensure SVG files are converted to PDF before the compilation of *.tex files.
> > The needed steps are also updated and inkscape is specified as a dependency.
>
> This seems very heavy, is there not some other conversion we can do in
> order to support PDF output?
>
> --
> Tom

The extension itself is quite simple.

inkscape on the other hand, according to apt-rdepends has 755
dependencies on Ubuntu 25.04.

rsvg-convert (librsvg2-bin) "only" has 179.

So, instead of sphinxcontrib.inkscapeconverter we can use
sphinxcontrib.rsvgconverter and reduce the number of dependencies
quite significantly.

Does this address your concern?

Com os melhores cumprimentos. / Best regards.
Adriano Carvalho


More information about the U-Boot mailing list