The additions in c34199f summarize workarounds employed by @catern to convert the output of the SVG generators into PDFs suitable for printing.
We should probably be aiming to generate PDFs directly. Python packages exist to help with this, including pyfpdf and pdfrw, but those don't seem to have been updated in a while.