Create pdf documents within an asp .net mvc project by generating your views as normal but returning a PdfActionResult. This converts regular produced razor/html to pdf documents in the browser using the iTextXmlWorker.
125
stars
105
forks
source link
Rendered PDF is visually different from rendered XHTML. #46
Added ~/Views/Shared/_PdfLayout.vbhtml
Altered ~Views/Home/Contact.vbhtml to use _PdfLayout
Modified HomeControler.Contact() to return a new PdfActionResult
The pdf is visually different from the web page. I've attached a screenshot showing the difference.
VS2015. Created new MVC5 project.
Added ~/Views/Shared/_PdfLayout.vbhtml Altered ~Views/Home/Contact.vbhtml to use _PdfLayout Modified HomeControler.Contact() to return a new PdfActionResult
The pdf is visually different from the web page. I've attached a screenshot showing the difference.