certificate

DOM PDF Certificate Components

This folder includes components that are not visibly utilized in the frontend template, but they are used by the DOMPDF library.

Certificate Versions

The certificates generated can come in two distinct versions:

1. Without the Donated Amount: This version is used when the user opts to hide the amount they donated.

2. With the Donated Amount: This version displays the value that the user donated.

Backend Implementation

Select different templates upon the user's choice to either hide or display the donated amount.

Testing

There is a testing tool that can be found here, which accepts the HTML/CSS found on this folder as a template to generate a PDF out of it.

Just copy and paste the full code from one of the two versions into the Manual entry tab, then go over to the options tab, and change Paper size and orientaion to a4 - portrait, and DPI to 150. When done, click submit to generate the PDF file.

Information

Folder
src/components/template-components/certificate

Files

Schema
// src/components/template-components/certificate/schema.yaml

$schema: http://json-schema.org/draft-07/schema
$id: /template-components/certificate
required: []
properties: {}