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

Add a lib: convert html to pdf

Open Song2017 opened this issue 1 year ago • 0 comments

What is this Python project?

Python 3 wrapper for wkhtmltopdf utility to convert HTML to PDF using Webkit.

What's the difference between this Python project and similar ones?

It is easy to use in docker

FROM python:3.9-slim
RUN pip install pdfkit==1.0.0
# convert html to pdf
RUN apt update -y && apt install -y wkhtmltopdf \
    && apt autoremove && apt clean

--

Anyone who agrees with this pull request could submit an Approve review to it.

Song2017 avatar Feb 22 '24 05:02 Song2017