diff --git a/src/asyncHelpers.ts b/src/asyncHelpers.ts index fa00f97..9dc1f34 100644 --- a/src/asyncHelpers.ts +++ b/src/asyncHelpers.ts @@ -11,14 +11,19 @@ asyncHelpers.set('--bc', generateBarcode); export const helpers = asyncHelpers.get({ wrap: true }); export async function generateBase64Barcode(type: string, content: string): Promise { - let barcode: Buffer = await bwipjs.toBuffer({ + let options = { bcid: type, text: content, - scale: 3, + scale: 4, height: 10, + width: 10, includetext: true, textxalign: 'center', - }); + } + if (type != "qrcode") { + delete options.width; + } + const barcode: Buffer = await bwipjs.toBuffer(options); return `data:image/png;base64,${barcode.toString('base64')}`; } diff --git a/src/templates/sponsoring_contract.html b/src/templates/sponsoring_contract.html index 29e6b22..c22eb5e 100644 --- a/src/templates/sponsoring_contract.html +++ b/src/templates/sponsoring_contract.html @@ -29,17 +29,17 @@
-
-
-

{{__ "sponsoring_title"}}

-
-
-

{{__ "please_use_blockletters"}} -

-
-
+
+
+

{{__ "sponsoring_title"}}

+
+
+

{{__ "please_use_blockletters"}} +

+
+

{{__ "sponsoring_subtitle"}}

@@ -54,7 +54,8 @@
- +