Skip to content

Commit

Permalink
Fix pdf_builder paths for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleason committed Sep 15, 2023
1 parent bcbb6c8 commit 329eef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QI/management/commands/pdf_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_all_pages(document):
return all_pages

def get_image_path(page):
prefix='/srv/QI/static/img/'
prefix='/app/media/img/'
suffix='.jpg'
image_path=prefix+page.id_tei+suffix
print (image_path)
Expand Down Expand Up @@ -141,7 +141,7 @@ def build(TEI_ID):
canv.setTitle(title)
# Draw things on the PDF. Here's where the PDF generation happens.
# See the ReportLab documentation for the full list of functionality.
canv.drawImage('/srv/QI/static/img/PennsTreaty-West2.jpg', 0.000001*inch, 8.9*inch, 8.6*inch, 2.6*inch)
canv.drawImage('/app/media/img/PennsTreaty-West2.jpg', 0.000001*inch, 8.9*inch, 8.6*inch, 2.6*inch)
canv.setFillColorRGB(255,255,255)
canv.setFont("Times-BoldItalic",35)
canv.drawString(0.1*inch,9.1*inch,"Beyond Penn's Treaty")
Expand Down

0 comments on commit 329eef5

Please sign in to comment.