andyhutch77 / MvcRazorToPdf

Create pdf documents within an asp .net mvc project by generating your views as normal but returning a PdfActionResult. This converts regular produced razor/html to pdf documents in the browser using the iTextXmlWorker.
125 stars 105 forks source link

Download the exported PDF file #63

Open tonthatbinh135 opened 4 years ago

tonthatbinh135 commented 4 years ago

Right now, I only managed to save the PDF file to the pre-defined path in the controller (which is not very intuitive). Is there any way to show a Download dialog box when the user click to an i.e "Export to PDF" link though?