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

GeneratePdfOutput from a ApiController

zolgera opened this issue · comments

Hi!

Ok this is not a bug just I don't know where to put a question

I get it from a class inside a WebAPI call.

I have some arbitrary data that I would like to generate a pdf from

What I need to do looks like is to fake the controllerContext with the data I would like to pass to the view. But I do not know how.

Hope someone can help

Solved it

Nice one. 👍🏻

Sent from my iPhone

On 10 Nov 2015, at 19:52, zolgera notifications@github.com wrote:

Solved it


Reply to this email directly or view it on GitHub.