python-pdfkit icon indicating copy to clipboard operation
python-pdfkit copied to clipboard

Text not rendering in PDF

Open albertsoup opened this issue 3 years ago • 2 comments
trafficstars

Hello,

I am trying to convert a specific web page to a PDF, but the text is not rendering over the background graphics.

Here is the webpage as seen in Chrome: image

Here is the resulting PDF: image

Here is the code that I ran:

import pdfkit
url = https://nvd.nist.gov/vuln/search/results?query=cpe%3A2.3%3Aa%3Alibarchive%3Alibarchive%3A*%3A*%3A*%3A*%3A*%3A*%3A*%3A*&results_type=overview&form_type=Advanced&startIndex=0
pdfkit.from_url(url, 'out.pdf')

I have also tried saving the page HTML to a local file and using from_file, and using wkhtmltopdf directly in the command line using wkhtmltopdf https://nvd.nist.gov/vuln/search/results?query=cpe%3A2.3%3Aa%3Alibarchive%3Alibarchive%3A*%3A*%3A*%3A*%3A*%3A*%3A*%3A*&results_type=overview&form_type=Advanced&startIndex=0 out.pdf

I have also tried experimenting with some of the pdfkit configurable options, but with no success.

Thanks in advance for your help.

albertsoup avatar Apr 01 '22 16:04 albertsoup

same problem here

imClumsyPanda avatar Aug 09 '23 08:08 imClumsyPanda

problem still persists

tiagolofi avatar Dec 07 '23 02:12 tiagolofi