Replace CairoSVG with resvg-py and migrate PDF generation to reportlab (#2136)