This commit is contained in:
@@ -577,6 +577,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//Set PDF options
|
||||
//https://pptr.dev/#?product=Puppeteer&version=v5.3.0&show=api-pagepdfoptions
|
||||
log.LogDebug($"Resolving PDF Options from report settings");
|
||||
var PdfOptions = new PdfOptions() { };
|
||||
PdfOptions.DisplayHeaderFooter = report.DisplayHeaderFooter;
|
||||
@@ -645,6 +646,7 @@ namespace AyaNova.Biz
|
||||
|
||||
PdfOptions.PreferCSSPageSize = report.PreferCSSPageSize;
|
||||
PdfOptions.PrintBackground = report.PrintBackground;
|
||||
//Defaults to 1. Scale amount must be between 0.1 and 2.
|
||||
PdfOptions.Scale = report.Scale;
|
||||
|
||||
//render to pdf and return
|
||||
|
||||
Reference in New Issue
Block a user