Generating PDFs of the certificates
Last updated
Last updated
The Certificate Generator template uses to generate PDFs of certificates.
You can read more about how PDF Potion works .
Whenever a user clicks the 'Create' button on the index page of the template, the 'Create PDF' action is run:
This action tells PDF Potion to create a PDF of the certificate page in the template.
The certificate page has the design of the PDF. It contains 4 different containers, each of which contains a different style of certificate:
Only 1 container is shown in the PDF of the certificate. The 'template' parameter in the 'Page Name' field in the 'Create PDF' action is used to decide which style certificate is shown on the certificate page for the PDFs.
PDF Potion automatically uploads a PDF of the certificate created by the user to the app's database. You can view PDFs in the 'File Manager' section of the database.
A backend workflow is used to link the uploaded PDF to a specific 'Certificate' entry in the database.
See the 'get_pdf' backend workflow below:
You can enable backend workflows by navigating to:
Settings -> API -> Checking the 'Enable Workflow API and backend workflows' option: