Hi Saikou,
We've done quite a bit of work at Stanford with PDF certificates. At
last week's OpenEdX Conference Hackathon, our team worked on and
presented 2 projects to ease use and adoption of the certificates
repository.
Namely, Giulio Gratta created "version 4 fully dynamic" templates which
will allow for 100% of a template's creation to be performed dynamically.
He's currently working to polish up that work during this development
sprint [1]; we hope to release it publicly soon.
In the interim, the most advanced PDF certificate solution is "version 3"
(it looks like you're still using the old default, "version 1").
V3 templates allow for _most_ content to be rendered at runtime (date,
username, course title, explanatory text, footer text). The few
remaining items (border, logo, and professor name/signature) are embedded
directly into the PDF template. In practice, this means we currently
have one template per instructor.
To get a better idea, you can go ahead and generate a sample V3
certificate as follows:
```shell
python ./create_pdfs.py --no-upload \
--course-id 'course-v1:edX+DemoX_v3+Demo_Course_v3' \
--long-course 'v3 Test Course' \
--name 'Giulio G. Gratta'
```
This will generate a certificate using the default template [3] that looks
like this [2]. To customize further, you can create a new PDF template
that updates the default [3]. After saving the new PDF [4], you can
generate an example with your new template like this:
```shell
python ./create_pdfs.py --no-upload \
--template-file 'certificate-template-unique-name.pdf' \
--course-id 'course-v1:edX+DemoX_v3+Demo_Course_v3' \
--long-course 'v3 Test Course' \
--name 'Giulio G. Gratta'
```
As I said, we're hoping to finish v4 soon, which will obviate the need
to ever edit any PDFs directly. But while you wait, feel free to poke
around v3 to get started.
I hope you find this useful; please let us know if you have additional
questions!
-- stv, stanford
[1]
https://github.com/Stanford-Online/openedx-certificates/pull/11[2] see attached screenshot
[3] `template_data/v3_dynamic-cert-templates/certificate-template-edX-DemoX_v3.pdf`
[4] Save to `template_data/v3_dynamic-cert-templates/certificate-template-unique-name.pdf`.