PDF Generation with Web API in .NET Core 7: Complete Tutorial

preview_player
Показать описание
Creating PDFs programmatically is a valuable skill for various applications, from generating reports to creating invoices and dynamically generating content. Our tutorial is tailored to assist developers, whether beginners or seasoned professionals, in mastering this essential functionality.

In this tutorial I show you how to convert your HTML page and generate PDF using puppeteersharp package from scratch.

We use from Web API .NET 7 project and add the required package and as well as set up the application in order to be able to generate PDF using chtml views

👇👇👇
Рекомендации по теме
Комментарии
Автор

For some reason bootstrap does its job perfectly when I open the MVC controller path in my browser but it does not apply when the pdf is generated and the file is downloaded. When I open the pdf it looks terrible and some classes are not applied. Any idea why?

DimzzCSGO
Автор

Thank you very much, I wanted to ask you what you use to paginate a table, if we do it in bootstrap, thanks in advance for the answer.

luisfernandodeolazabalsche
Автор

Thanks
How to do the same by replacing view with blazor ?

cissemy