andyhutch77 / MvcRazorToPdf

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rendered PDF is visually different from rendered XHTML.

DWAK-ATTK opened this issue · comments

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.
contact_pdf_-_microsoft_edge