Thursday, July 17, 2025

KendoPDF and SVGs that depend on CSS

 I made some progress from the "why won't ReactFlow edges show in KendoPDF exported PDFs" I had the other day, at least in understanding the problem.

I started this thread on the reactflow github that got me digging into - A ok, Kendo DOES do SVGs, right? So what's special about these node lines?

Eventually it got me back to starting this bug report on the Kendo side - along with this crude StackBlitz (I have to remember StackBlitz, it's one of the better CodeSandbox type things I've seen, love being able to tool around in a lil terminal.

My experiments indicate that ReactFlow depends on CSS to do stuff like stroke and strokeWidth inside of PNGs but that gets ignored by the KendoPDF rendering process. 

Bummer! I need to see if html2canvas or html-to-image have better results, maybe combine with jsPdf. 

No comments:

Post a Comment