PDF generated using Razor View sometimes stop generating PDF
-
The message “This PDF is corrupted” on opening the pdf file generated is observed using Razor View that is deployed in VM.
-
Can you save the pdf to file and share it?
You should be able to do it like this
HttpContext.JsReportFeature().Recipe(Recipe.ChromePdf) .OnAfterRender((r) => { r.Stream ... is stream write it to file somewhere });
-
How to get hold on the r.Stream to return the stream instead of creating a PDF and returning it to the browser
I mean having a FileContentResult instead of ActionResult