-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,14 @@ let name = $state(""); | |
let pdfCoverLetter = $state(null as File | null); | ||
let pdfCV = $state(null as File | null); | ||
let pdfMastersCertificate = $state(null as File | null); | ||
let applicationComplete = true; //$derived(pdfCoverLetter && pdfCV && pdfMastersCertificate); | ||
let applicationComplete = $derived( | ||
pdfCoverLetter && pdfCV && pdfMastersCertificate, | ||
); | ||
let checkboxes = $state([ | ||
{ id: "Internal candidate", text: "Internal candidate", value: false }, | ||
{ id: "Check2", text: "check box 2", value: false }, | ||
{ id: "Check3", text: "check box 3", value: false }, | ||
]); | ||
function writeLine(page: PDFPage, text: string, ypos: number): number { | ||
|
@@ -53,9 +56,9 @@ async function downloadMergedPdf() { | |
} | ||
const merger = new PDFMerger(); | ||
await merger.add(await createPdfFrontPage()); | ||
// await merger.add(pdfCoverLetter) | ||
// await merger.add(pdfCV) | ||
// await merger.add(pdfMastersCertificate) | ||
await merger.add(pdfCoverLetter); | ||
await merger.add(pdfCV); | ||
await merger.add(pdfMastersCertificate); | ||
await merger.save("application"); | ||
} | ||
</script> | ||
|
@@ -65,7 +68,7 @@ async function downloadMergedPdf() { | |
<Card size="2xl" class="my-2"> | ||
<div class="flex flex-col space-y-4"> | ||
<P | ||
>To apply for this position, please fill in all required fields, then click "Download PDF" | ||
>To apply for this position, please fill in all required fields, then click "Download PDF" | ||
to download your application as PDF file and send it to [email protected]</P | ||
> | ||
<div> | ||
|