Generating PDF in asp.net MVC 4 RRS feed

  • Question

  • User847490708 posted


    I have been trying to generate PDF from my HTML view. I have used RazorPDF, but I am getting this error:

    Could not load type 'iTextSharp.text.html.HtmlParser' from assembly 'itextsharp, Version=, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'.

    Can anyone please help me? 

    Thursday, December 18, 2014 7:21 AM

All replies

  • User197322208 posted

    Please show stack trace and  line of error( and 2-3 surrounding)

    Thursday, December 18, 2014 7:51 AM
  • User-383679542 posted

    RazorPDF has a dependency of iTextSharp - https://www.nuget.org/packages/iTextSharp/ Hope you included it in the project.

    Thursday, December 18, 2014 7:58 AM
  • User847490708 posted

    I downloaded few other itextsharp libraries so it's not giving any error now. Now what's happening is it's giving a blank page. The PDF loading sign appears at the bottom but the data never loads. 

    Thursday, December 18, 2014 8:43 AM