pydf icon indicating copy to clipboard operation
pydf copied to clipboard

PDF generation in python using wkhtmltopdf for heroku and docker

Results 4 pydf issues
Sort by recently updated
recently updated
newest added

I am running the basic example as follow: ``` import pydf pdf = pydf.generate_pdf('this is html') with open('test_doc.pdf', 'wb') as f: f.write(pdf) ``` and I get the following error: ```...

In the rendered PDF images are not loaded. here is `main.py` ``` import pydf html_str = """ بن اعتباری """ pdf = pydf.generate_pdf(html_str) with open("test_doc.pdf", "wb") as f: f.write(pdf) ```...

Hi! I love your work. I am trying to make page numbers alternately appear at the bottom left for odd pages and bottom right for even pages. Is there a...

We have the ability to set whtmltopdf options via HTTP Header, but that **only works for argument with a value** I'm afraid. HTTP headers are read here: https://github.com/tutorcruncher/pydf/blob/8f9ce76344d4d32a8e8ac60f289d194cc509fce1/docker-entrypoint.py#L39-L41 Then in:...