Fixed page size+background image

ref #36
This commit is contained in:
Nicolai Ort 2021-03-31 15:42:52 +02:00
parent 0af9b81b38
commit b82a32ae3e
1 changed files with 1 additions and 2 deletions

View File

@ -181,8 +181,7 @@ export class PdfCreator {
const template = Handlebars.compile(template_source);
let result = template({ runners, eventname: config.eventname });
result = await awaitAsyncHandlebarHelpers(result);
const pdf = await this.renderPdf(result, { format: "A5", landscape: true });
fs.writeFileSync("lelelelele.tmp", pdf);
const pdf = await this.renderPdf(result, { format: "A4", landscape: false, printBackground: true });
return pdf;
}