Guest User

Untitled

a guest
Jul 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. from reportlab.pdfgen import canvas
  2. from reportlab.platypus import Image
  3.  
  4. # ...
  5.  
  6. pdf = canvas.Canvas(
  7. filename,
  8. bottomup = 0)
  9.  
  10. # ...
  11.  
  12. logo_image = Image(
  13. "%s/images/wsp_logo.jpg" % settings.STATIC_ROOT,
  14. width=200,
  15. height=200)
  16. logo_image.drawOn(pdf, 100, 100)
Add Comment
Please, Sign In to add comment