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

"The document has no pages" but only from test server

stevewash123 opened this issue · comments

When I run my project locally, I have no issue. When I deploy to our test server, I get "The document has no pages". In both cases, I am logging the data retrieved from the database prior to adding it to the Model, and there's no difference. Suggestions?

I am getting the same message when try to print pdf using simple block
ViewBag.Message = "Your contact page."; var contact = new Country() { Name = "John Doe", ShortCode = "118220202020" }; return new PdfActionResult(contact);