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.
125 stars 105 forks source link

Rendered PDF is visually different from rendered XHTML. #46

Open DWAK-ATTK opened 8 years ago

DWAK-ATTK commented 8 years ago

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