New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Try to use google first:
https://www.google.com/search?q=create+pdf+c%23&oq=create+pdf+c%23&aqs=chrome..69i57j69i60j0l4.124794j0j7&sourceid=chrome&ie=UTF-8
You need a PDF API for c# to be able to do that. You can google for one that you like or choose one from one of the following tutorials:
https://ironpdf.com/
http://csharp.net-informations.com/file/create-pdf.htm
https://www.pdfonline.com/c%23-create-pdf/