Convert XLSX to a PDF document to download

That is because you’re saving it directly to that path, you’re not downloading it.
For downloading, please check our ASP.NET Core example:

Or try something like this:

using MemoryStream excelStream = new MemoryStream(await GenerateExcelWorkbookByDepartmentAsync());
ExcelFile workbook = ExcelFile.Load(excelStream);

using MemoryStream pdfStream = new MemoryStream();
PdfSaveOptions pdfOptions = new PdfSaveOptions() { SelectionType = SelectionType.EntireFile };
workbook.Save(pdfStream, pdfOptions);

// Download file.
return File(pdfStream, pdfOptions.ContentType, "Convert1.pdf");

Does this solve your issue?