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

GeneratePdfOutput from a ApiController #42

Closed zolgera closed 9 years ago

zolgera commented 9 years ago

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

zolgera commented 9 years ago

Solved it

andyhutch77 commented 9 years ago

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.