learning-credentials 0.2.3__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).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: learning-credentials
3
- Version: 0.2.3
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,13 @@ 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
+
177
184
  0.2.3 - 2025-08-18
178
185
 
179
186
  Modified
@@ -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
@@ -26,9 +26,9 @@ learning_credentials/templates/learning_credentials/edx_ace/certificate_generate
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.3.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
30
- learning_credentials-0.2.3.dist-info/METADATA,sha256=bGXo0uhxTIqHjjVvY4VJdFhjd37NggDgf8mgqpBgSgI,6828
31
- learning_credentials-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
- learning_credentials-0.2.3.dist-info/entry_points.txt,sha256=hHqqLUEdzAN24v5OGBX9Fr-wh3ATDPjQjByKz03eC2Y,91
33
- learning_credentials-0.2.3.dist-info/top_level.txt,sha256=Ce-4_leZe_nny7CpmkeRiemcDV6jIHpIvLjlcQBuf18,21
34
- learning_credentials-0.2.3.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,,