This commit is contained in:
@@ -521,9 +521,15 @@ namespace AyaNova.Biz
|
||||
string outputFileName = StringUtil.ReplaceLastOccurrence(FileUtil.NewRandomFileName, ".", "") + ".pdf";
|
||||
string outputFullPath = System.IO.Path.Combine(FileUtil.TemporaryFilesFolder, outputFileName);
|
||||
|
||||
|
||||
//Set PDF options
|
||||
log.LogDebug($"Resolving PDF Options from report settings");
|
||||
var PdfOptions = new PdfOptions() { };
|
||||
PdfOptions.DisplayHeaderFooter = report.DisplayHeaderFooter;
|
||||
|
||||
//render to pdf and return
|
||||
log.LogDebug($"Calling render page contents to PDF");
|
||||
await page.PdfAsync(outputFullPath);
|
||||
await page.PdfAsync(outputFullPath, PdfOptions);
|
||||
|
||||
//close the browser
|
||||
// log.LogDebug($"Closing browser");
|
||||
|
||||
Reference in New Issue
Block a user