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

Wkhtmltopdf python wrapper to convert html to pdf

Results 45 python-pdfkit issues
Sort by recently updated
recently updated
newest added
trafficstars

I have deployed my flask in docker ``` FROM python:3.8 RUN mkdir /app COPY . /app/ WORKDIR /app/ RUN pip3 install -r requirements.txt EXPOSE 5000 ENTRYPOINT [ "python3" ] CMD...

Hello. When I try to use a list of files to create a PDF, I get the following error: ```bash OSError: wkhtmltopdf exited with non-zero code 1. error: Exit with...

function: ``` def converter(filename, output_path=(getcwd() + '\\output\\')): pdfkit.from_file(f'{output_path}html\\{filename}.html', f'{output_path}pdf\\PDF-{filename}.pdf') ``` output: ![image](https://user-images.githubusercontent.com/65213455/150048883-22e7eb75-7570-40c7-8995-fda21676e4bc.png) py: 3.8 pdfkit: last wk: last, 64bit

# pdfkit error: Exit with code 1 due to network error: ProtocolUnknownError ## I'm trying to convert an HTML file to PFD with the pdfkit package. Here is my python...

It would be nice to be able to control this to make runs reproducible. I've tried `freezegun.freeze_time`, but pdfkit even writes the microseconds.

I have an issue where my HTML works fine with MailTo links that have return-delimited text lines for the body section. That HTML has "%0A" to designate that the body...

Is it possible to use the pdfkit + wkhtmltopdf.exe with the executable outside its default location? ![image](https://user-images.githubusercontent.com/18254213/197864589-b57fdb43-e033-4a9f-80d7-f753eb03069e.png) I have been trying to do this, so it work in my current...

I have faced with a problem with asserts: we are using PYTHONOPTIMIZE=2 on production environment so all asserts are cleaned from the execution (https://docs.python.org/3/using/cmdline.html#cmdoption-O). As the result, we getting the...