Convert SVG to a PDF in Node with PDFKit and SVG.js

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

I was recently given the task of generating Completion Certificates for Kent's Testing JavaScript course. We wanted the users to be able to print them at any size, so I took it upon myself to make sure that we used SVG rendered out in the PDF. This lesson walks through the process I used to tackle that problem and how Express can return a PDF from SVG in the response.