Skip to content

Commit

Permalink
Use frontpage.pdf instead of a hardcoded one
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh14901 committed Aug 2, 2022
1 parent 3350a5e commit c471c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/generate_single_personal_yb.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,16 @@ def createWordCloud(student):
##########################################
# merge pdfs

FRONT_PAGE = "myapp/static/myapp/pdf/Yearbook21GTA.pdf"
# FRONT_PAGE = "myapp/static/myapp/pdf/Yearbook21GTA.pdf"
ROOT_DIR = "media/collage_and_yearbook_personal/"
FRONT_PAGE = os.path.join(ROOT_DIR, 'frontpage.pdf')

current_dir = str(student.user)
student_name = current_dir
current_dir = os.path.join(ROOT_DIR, current_dir)
yearbook_pdf = os.path.join(current_dir, 'yearbook.pdf')
collage_dir = os.path.join(current_dir, 'collages')
collage_pdfs = os.listdir(collage_dir)
# frontpage_pdf = os.path.join(ROOT_DIR, 'frontpage.pdf')

a4inpt = (img2pdf.mm_to_pt(210),img2pdf.mm_to_pt(297)) # specify page size (A4)
layout_fun = img2pdf.get_layout_fun(a4inpt)
Expand Down

0 comments on commit c471c8e

Please sign in to comment.