Skip to content

Commit

Permalink
Merge pull request #1432 from LibraryOfCongress/1334-Generate-Letter
Browse files Browse the repository at this point in the history
pdf fix
  • Loading branch information
rabiloc committed May 10, 2021
2 parents 4a8d792 + 3ebd91f commit ee47756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concordia/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def AccountLetterView(request):
pdf.cell(80, 5, txt="By the People", ln=1, align="C")
pdf.set_font("Arial", size=11)
pdf.cell(140, 5, txt="Digital Content Management Section", ln=1, align="L")
pdf.cell(150, 5, txt="Library of Congress", ln=1, align="L")
pdf.cell(150, 5, txt="Library of Congress ", ln=1, align="L")
pdf.output("letter.pdf", "F")
with open("letter.pdf", "rb") as f:
response = HttpResponse(content=f.read(), content_type="application/pdf")
Expand Down

0 comments on commit ee47756

Please sign in to comment.