- Home
- .NET code examples
- Create a PDF using HTML & CSS in ASP.NET Core
Create a PDF using HTML & CSS in ASP.NET Core
There are a number of Nuget packages that allow you to create a dynamic PDF document for free in ASP.NET Core.
Software
This is the software that will need to be installed onto your machine.
- Visual Studio 2019. Version 16.8.4 or above (may work with lower versions). It will work with the free community version.
- .NET 5.0 SDK, or above.
Get The Application Working
These are the steps to get the application working.
- Fill out the code example form. We will send you an email where you can download the code example.
You are now ready to go.
Open the Project in Visual Studio
Open up RoundTheCode.Pdf.sln in Visual Studio.
https://localhost:3000.
https://localhost:3000/pdf/website. This should generate a PDF document showing RoundTheCode.com layout in mobile, tablet and desktop. It should also save the PDF as RoundTheCode.pdf in the web directory.
https://localhost:3000/pdf/invoice. This should generate a PDF document of an invoice. It should also save the PDF as Invoice.pdf in the web directory.
More Information
You can read more information by viewing our "How to Create a PDF Document for Free in ASP.NET Core" article.
Give us your anonymous feedback regarding this page, or any other areas of the website.
Watch .NET tutorials
Subscribe to our YouTube channel
Latest code examples
C# 14: New features with code examples
Download the code example and see what's new in C# 14. From extension members to simple lambdas, learn how these features make your code cleaner and smarter.