Generate-PDF-in-Django Install xhtml2pdf docs: Using Python 3 pip install --pre xhtml2pdf Using Python 2 pip install xhtml2pdf You can dynamic image url and show any image into PDF file.