Hi, webgio. It looks like in order to building a pdf from a view it is mandatory to use the "BuildFile(ControllerContext context)" method which requires ControllerContext as an input argument.
So what can we do when there is no HttpContext, for instance consider a scenario in which you are intended to generate some pdfs and email them to some clients in a background job (e.g. Hangfire)? Is there any workaround for it?
Hi, webgio. It looks like in order to building a pdf from a view it is mandatory to use the "BuildFile(ControllerContext context)" method which requires ControllerContext as an input argument. So what can we do when there is no HttpContext, for instance consider a scenario in which you are intended to generate some pdfs and email them to some clients in a background job (e.g. Hangfire)? Is there any workaround for it?