You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
Have been trying to set a name for the document generated using the _generatePdf.GetByteArrayViewInHtml(). Please how can I go about this? Instead of the Document given as the default title when you preview or download, I want to be able to change it.
Thanks.
The text was updated successfully, but these errors were encountered:
var pdf = await _generatePdf.GetByteArrayViewInHtml(htmlView, data);
var pdfStream = new System.IO.MemoryStream();
pdfStream.Write(pdf, 0, pdf.Length);
pdfStream.Position = 0;
return new FileStreamResult(pdfStream, "application/pdf") { FileDownloadName = "New Name.pdf" };
Hi
Have been trying to set a name for the document generated using the
_generatePdf.GetByteArrayViewInHtml()
. Please how can I go about this? Instead of theDocument
given as the default title when you preview or download, I want to be able to change it.Thanks.
The text was updated successfully, but these errors were encountered: