public async Task <IActionResult> ConvertHtmlToPdf() { _logger.LogInformation("Serving convert html to pdf"); var htmlContent = await HtmlReader.ReadHtmlFile(); return(await _reportService.ExportToPdf(htmlContent, false)); }