Skip to content Skip to sidebar Skip to footer

Approach: Python-pdfkit Convert Webpage(js Generated) Into Pdf

views.py def download_as_pdf(request): # some stuff/function call to get updated(with data and JS) template and render it return render(request, temp) def download(reque

Solution 1:

This could be because pdf is rendered before the entire javascript is loaded. If you introduce a javascript delay it will work.

 options = {
    'javascript-delay':'5000'
           }

Post a Comment for "Approach: Python-pdfkit Convert Webpage(js Generated) Into Pdf"