learning-credentials 0.2.2rc2__py3-none-any.whl → 0.2.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,7 +89,7 @@ def _write_text_on_template(template: any, font: str, username: str, context_nam
89
89
  pdf_canvas = canvas.Canvas(io.BytesIO(), pagesize=(template_width, template_height))
90
90
 
91
91
  # Write the learner name.
92
- pdf_canvas.setFont(font, 32)
92
+ pdf_canvas.setFont(font, options.get('name_size', 32))
93
93
  name_color = options.get('name_color', '#000')
94
94
  pdf_canvas.setFillColorRGB(*hex_to_rgb(name_color))
95
95
 
@@ -184,6 +184,7 @@ def generate_pdf_credential(
184
184
  - font: The name of the font to use.
185
185
  - name_y: The Y coordinate of the name on the credential (vertical position on the template).
186
186
  - name_color: The color of the name on the credential (hexadecimal color code).
187
+ - name_size: The font size of the name on the credential. The default value is 32.
187
188
  - context_name: Specify the custom course or Learning Path name.
188
189
  - context_name_y: The Y coordinate of the context name on the credential (vertical position on the template).
189
190
  - context_name_color: The color of the context name on the credential (hexadecimal color code).
@@ -5,7 +5,7 @@
5
5
  </p>
6
6
 
7
7
  <p>
8
- {% blocktrans %}We are happy to inform you that you have earned a certificate. You should feel very proud of the work you have done in this course. We congratulate you on your efforts and your learning.{% endblocktrans %}
8
+ {% blocktrans %}We are happy to inform you that you have earned a certificate. You should feel very proud of the work you have done in this program. We congratulate you on your efforts and your learning.{% endblocktrans %}
9
9
  </p>
10
10
 
11
11
  <p>
@@ -15,7 +15,7 @@
15
15
 
16
16
  <div>
17
17
  <div>
18
- {% blocktrans %}Thank you for choosing {{ platform_name }} for your learning journey. We look forward to seeing you in more courses in the future.{% endblocktrans %}
18
+ {% blocktrans %}Thank you for choosing {{ platform_name }} for your learning journey. We look forward to seeing you in more programs in the future.{% endblocktrans %}
19
19
  </div>
20
20
  </div>
21
21
 
@@ -2,12 +2,12 @@
2
2
 
3
3
  {% blocktrans %}Thank you for your participation in {{ course_name }} at {{ platform_name }}!{% endblocktrans %}
4
4
 
5
- {% blocktrans %}We are happy to inform you that you have earned a certificate. You should feel very proud of the work you have done in this course. We congratulate you on your efforts and your learning.{% endblocktrans %}
5
+ {% blocktrans %}We are happy to inform you that you have earned a certificate. You should feel very proud of the work you have done in this program. We congratulate you on your efforts and your learning.{% endblocktrans %}
6
6
 
7
7
  {% trans "To view and download your certificate, please click on the following link:" %}
8
8
 
9
9
  {{ certificate_link }}
10
10
 
11
- {% blocktrans %}Thank you for choosing {{ platform_name }} for your learning journey. We look forward to seeing you in more courses in the future.{% endblocktrans %}
11
+ {% blocktrans %}Thank you for choosing {{ platform_name }} for your learning journey. We look forward to seeing you in more programs in the future.{% endblocktrans %}
12
12
 
13
13
  {% endautoescape %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: learning-credentials
3
- Version: 0.2.2rc2
3
+ Version: 0.2.4
4
4
  Summary: A pluggable service for preparing Open edX credentials.
5
5
  Author-email: OpenCraft <help@opencraft.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -174,6 +174,20 @@ Unreleased
174
174
 
175
175
  *
176
176
 
177
+ 0.2.4 - 2025-09-07
178
+
179
+ Added
180
+ =====
181
+
182
+ * Option to customize the learner's name size on the PDF certificate.
183
+
184
+ 0.2.3 - 2025-08-18
185
+
186
+ Modified
187
+ ========
188
+
189
+ * Certificate email template wording.
190
+
177
191
  0.2.2 - 2025-08-05
178
192
 
179
193
  Added
@@ -3,7 +3,7 @@ learning_credentials/admin.py,sha256=ynK3tVJwLsIeV7Jk66t1FAVyVsU1G-KRIAdRkycVTmA
3
3
  learning_credentials/apps.py,sha256=AA6JYUyqKYvNJ5POtQKw_s1g1VrUXuQI96hbea9H220,761
4
4
  learning_credentials/compat.py,sha256=Btm1Ii3D0nHuPZWZya_VR0JkkFcNRstuwg7A1DXlWG0,4547
5
5
  learning_credentials/exceptions.py,sha256=UaqBVXFMWR2Iob7_LMb3j4NNVmWQFAgLi_MNMRUvGsI,290
6
- learning_credentials/generators.py,sha256=Tzl9fLEVxrjAB1lUYhifGEpIU3JzWPcwvFHeHcVxc4M,8960
6
+ learning_credentials/generators.py,sha256=KCB166rOx-bwnm6kOc-Vz2HomGdJrQXqglv2MPVBF_Q,9075
7
7
  learning_credentials/models.py,sha256=Wepzng9WYDAxF8ptyQokp_9jCmuEv_4FY7ytkKFS4uU,16047
8
8
  learning_credentials/processors.py,sha256=LkdjmkLBnXc9qeMcksB1T8AQ5ZhYaECyQO__KfHB_aU,15212
9
9
  learning_credentials/tasks.py,sha256=byoFEUvN_ayVaU5K5SlEiA7vu9BRPaSSmKnB9g5toec,1927
@@ -21,14 +21,14 @@ learning_credentials/settings/__init__.py,sha256=tofc5eg3Q2lV13Ff_jjg1ggGgWpKYoe
21
21
  learning_credentials/settings/common.py,sha256=4n9AeQD-GB2MYFVrwXWEsTSrKC9btn8bgyr9OQuXNsY,302
22
22
  learning_credentials/settings/production.py,sha256=yEvsCldHOdsIswW7TPLW__b9YNEK-Qy05rX5WSAcEeo,484
23
23
  learning_credentials/templates/learning_credentials/base.html,sha256=wtjBYqfHmOnyEY5tN3VGOmzYLsOD24MXdEUhTZ7OmwI,662
24
- learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.html,sha256=o-tfFQSNf-tuu_YzPosm0SFxUXe9oPh17PyjdiVSBhQ,811
25
- learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.txt,sha256=ld8bs0zbfVF6S-pPqjUKW6FRdITZO-gs4spZUpr-fpQ,675
24
+ learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.html,sha256=t-i1Ra9AC4pX-rPRifDJIvBBZuxCxdrFqg1NKTjHBOk,813
25
+ learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.txt,sha256=IF_x8aF_-dORlQB-RCh0IkJDl2ktD489E8qGgLe9M3Y,677
26
26
  learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/from_name.txt,sha256=-n8tjPSwfwAfeOSZ1WhcCTrpOah4VswzMZ5mh63Pxow,20
27
27
  learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/head.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/subject.txt,sha256=S7Hc5T_sZSsSBXm5_H5HBNNv16Ohl0oZn0nVqqeWL0g,132
29
- learning_credentials-0.2.2rc2.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
30
- learning_credentials-0.2.2rc2.dist-info/METADATA,sha256=zD1A7nB8WGbspH5q9ST9Uj2oEFVGfeTObQmtyKhDv-o,6753
31
- learning_credentials-0.2.2rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
- learning_credentials-0.2.2rc2.dist-info/entry_points.txt,sha256=hHqqLUEdzAN24v5OGBX9Fr-wh3ATDPjQjByKz03eC2Y,91
33
- learning_credentials-0.2.2rc2.dist-info/top_level.txt,sha256=Ce-4_leZe_nny7CpmkeRiemcDV6jIHpIvLjlcQBuf18,21
34
- learning_credentials-0.2.2rc2.dist-info/RECORD,,
29
+ learning_credentials-0.2.4.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
30
+ learning_credentials-0.2.4.dist-info/METADATA,sha256=JZp1WGwmRZ7H83pWhjAzxQJlg4RaebrdSxncl3sHdJo,6932
31
+ learning_credentials-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
+ learning_credentials-0.2.4.dist-info/entry_points.txt,sha256=hHqqLUEdzAN24v5OGBX9Fr-wh3ATDPjQjByKz03eC2Y,91
33
+ learning_credentials-0.2.4.dist-info/top_level.txt,sha256=Ce-4_leZe_nny7CpmkeRiemcDV6jIHpIvLjlcQBuf18,21
34
+ learning_credentials-0.2.4.dist-info/RECORD,,