Generate PDF with Asp.Net MVC

Asked

Viewed 3,309 times

4

Hello, in my application the reports are generated in Html, I would like to know a way to generate these Html reports in PDF.

3 answers

3

Razorpdf is a good alternative, but it is incompatible with iTextSharp version 5 or higher. Thinking about it, I developed Razorpdf2.

Here are some examples of use. Basically, define your View normally, but use the PdfActionResult or PdfResult to return the result. PdfActionResult works with normal HTML. PdfResult works with iTextSharp markup syntax up to version 4.

There is, yet, the Rotary, but which does not work in Azure.

  • Razorpdf2 makes pagination ? has how to place image in header ?

  • No. You would have to work directly with iTextSharp.

0

When we work with development . NET (although most today have it) has a package repository that is called in the world . NET NUGET.

There are several, I would recommend this: Razorpdf for MVC - Generate Pdfs with... 1.0.0 and has the tutorial on this link: Razorpdf. Just remembering that it generates from a View a PDF!

If you want to search another package click on this search link.

0


Browser other questions tagged

You are not signed in. Login or sign up in order to post.