Skip to content

Error from ControllerContext.GeneratePdf #50

@RoyBradley

Description

@RoyBradley

I get the following error when I call GeneratePdf:
RuntimeWorkerException was unhandled by user code
An exception of type 'iTextSharp.tool.xml.exceptions.RuntimeWorkerException' occurred in itextsharp.xmlworker.dll but was not handled in user code
Additional information: Invalid nested tag head found, expected closing tag link.

This is the call:
byte[] pdfOutput = ControllerContext.GeneratePdf(model, "CreatePDF", (writer, document) => {
document.SetPageSize(PageSize.LETTER);
document.NewPage();
});

Roy W Bradley

I've attached the view
http://localhost:57108/Views/PDF/CreatePDF.cshtml

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