Using the dotnetcore middleware filter, I'm trying to configure the pdf-password extension options. The instructions are to set a new object in the Template configuration but I'm not sure how to add an arbitrary property.
From the jsreport-pdf-password docs:
template: {
content: '...',
recipe: '...',
engine: '...',
pdfPassword: {
active: true,
password: '1234'
/* ...other options... */
}
}
}
However in my configuration, I don't know how to specify the pdfPassword property:
HttpContext.JsReportFeature()
.Configure((r) => r.Template = new jsreport.Types.Template
{
Recipe = jsreport.Types.Recipe.ChromePdf,
Chrome = new jsreport.Types.Chrome
{
PrintBackground = true,
MediaType = jsreport.Types.MediaType.Print,
},
Engine = jsreport.Types.Engine.None,
///??? pdfPassword = isn't allowable here
});
Thank you in advance for any guidance!