Added Barebones pdf creator class

ref #3
This commit is contained in:
Nicolai Ort 2021-02-02 10:01:31 +01:00
parent 8a30265fc6
commit 557cc26f28
1 changed files with 14 additions and 0 deletions

14
src/PdfCreator.ts Normal file
View File

@ -0,0 +1,14 @@
import fs from "fs";
import path from 'path';
/**
* This class is responsible for all things pdf creation.
* This uses the html templates from src/templates.
*/
export class PdFCreator {
private templateDir = path.join(__dirname, '/templates');
public generateSponsoringContract() {
const template = fs.readFileSync(`${this.templateDir}/sponsoring_contract.html`, 'utf8');
}
}