IsidoreSong commited on
Commit
b4aa982
·
verified ·
1 Parent(s): b028b49

Update src/pyscripts/file_process.py

Browse files
Files changed (1) hide show
  1. src/pyscripts/file_process.py +1 -1
src/pyscripts/file_process.py CHANGED
@@ -38,7 +38,7 @@ def writeInvitationPDF(person, debug=False):
38
  page.insert_font(fontname="f", fontfile=font_path)
39
  page.insert_text((145, 80),
40
  person.name+person.title, fontname="f", fontsize=min(font_size, font_size*5/len(person.name+person.title)), color=(1, 1, 1))
41
- if person.category == "演讲":
42
  page.insert_text((80, 375),
43
  person.conference, fontname="f", fontsize=min(font_size, font_size*14/len(person.conference)), color=(1, 1, 1))
44
  pdfStream = io.BytesIO()
 
38
  page.insert_font(fontname="f", fontfile=font_path)
39
  page.insert_text((145, 80),
40
  person.name+person.title, fontname="f", fontsize=min(font_size, font_size*5/len(person.name+person.title)), color=(1, 1, 1))
41
+ if person.category == "演讲" or person.category == "致辞":
42
  page.insert_text((80, 375),
43
  person.conference, fontname="f", fontsize=min(font_size, font_size*14/len(person.conference)), color=(1, 1, 1))
44
  pdfStream = io.BytesIO()