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
                 });
    

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.