Generating PDF's with Express

In this article you'll find a fun little tutorial of how to create a
PDF file using a web form, Express and PDFKit. To get started it'll
use the express generator and after completing it you'll have a
simple web form that generates a PDF file if the user clicks on the
button Create PDF. I'll also point you in the right direction
if you want to deploy the app using
Now.

Now if you restart your app and visit
http://localhost:3000 you should
see a nicely formatted HTML form. Next we're going to add the route
for creating PDF files. Create the file routes/pdf and
add the following code: