- PDF Generate with DinkToPdf.
- Install-Package DinkToPdf.
- Download libwkhtmltox.dll, libwkhtmltox.dylib, libwkhtmltox.so files.
- Copy the dll files and paste to the project.
- Select all of 3 dll files and click the properties and follow the image.
- Startup.cs file config add below the code.
- Add CSS file for the pdf template to the wwwroot folder.
- Add Sample.pdf file to the wwwroot folder.