c# define the pdf name code example
Example: how to give pdfcoument a name in c#
PdfDocument document = new PdfDocument();
PdfPage page = document.Pages.Add();
PdfGraphics graphics = page.Graphics;
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
MemoryStream stream = new MemoryStream();
document.Save(stream);
stream.Position = 0;
document.Close(true);
string contentType = "application/pdf";
string fileName = "Output.pdf";
return File(stream, contentType, fileName);