Skip to content

Text not rendering in PDF #223

@albertsoup

Description

@albertsoup

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions