MvcRazorToPdf
MvcRazorToPdf copied to clipboard
Error from ControllerContext.GeneratePdf
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
Updated Information iTextSharp Version 5.5.9 itextsharp.xmlworker version 5.5.9 MvcRazorToPdf Version 1.0.2