I am trying to export HTML code as PDF. I need to save to client browser instead of server. All I've been able to find online is to save to root then download to browser. I'd like to avoid that step if possible.
void ExportPDF()
{
SelectPdf.HtmlToPdf converter = new SelectPdf.HtmlToPdf();
SelectPdf.PdfDocument doc = converter.ConvertUrl("https://selectpdf.com");
doc.Save("test.pdf");
doc.Close();
}