Skip to content

Generating Pdf in a background job (without HttpContext or ControllerContext) #233

@m-okhovat

Description

@m-okhovat

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions