iTextSharp is a free .NET library that allows you to generate PDF files on the fly.

You'll find the iTextSharp Tutorial at https://itextsharp.sourceforge.net/tutorial/

more ...