Questions tagged [django-weasyprint]
11 questions
2
votes
3 answers
OSError: cannot load library 'gobject-2.0-0': Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
While installing saleor, I have encountered with the below issue.
OSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
I have tried all the…

pylearner
- 1,358
- 2
- 10
- 26
2
votes
1 answer
How to set a header in the same place across different pages by using WeasyPrint?
we are using WeasyPrint version: 53.4 & Python version: 3.9.1 to generate PDF from html template. But we are facing a problem in the running header alignment after the first page. It exactly same as the issue, and solution for that problem not…

Makesh
- 335
- 4
- 15
2
votes
0 answers
no library called "cairo" was found in Mac
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': dlopen(libcairo.so.2, 2): image not found
cannot load library 'libcairo.2.dylib': dlopen(libcairo.2.dylib, 2): image not…

Shashank Ky
- 39
- 3
2
votes
1 answer
How do I add WeasyPrint dependencies to Azure App Service app?
With WeasyPrint, I need to do the following in order to get the required libraries:
sudo apt-get install build-essential python3-dev python3-pip python3-setuptools python3-wheel python3-cffi libcairo2 libpango-1.0-0 libpangocairo-1.0-0…

David W. Green
- 21
- 3
1
vote
2 answers
weasyprint: change href link formatting in PDF
I am using weasyprint 56.1 with django-weasyprint 2.1.0, with vanilla settings.
When my HTML contains an ordinary hyperlink of the form
my link text
I want weasyprint to generate PDF that looks like
my link…

Lutz Prechelt
- 36,608
- 11
- 63
- 88
1
vote
0 answers
Failed to load image at '/images/logo.png': timeout: timed out in html to pdf by weasyprint
This is weasyprint log file output
Anchor defined twice: 'sec-dec'
Failed to load image at 'http://localhost:8000/static/assets_landing/images/logo.png': timeout: timed out
No anchor # for internal URI reference
No anchor # for internal URI…

Tanvir Ahmmed
- 41
- 1
- 4
0
votes
1 answer
WeasyPrint: Image not showing on linux (ubuntu)
I am using weasyprint it working on window perfectly and also it is working on linux
when I used this string in html file like
weasyprint my.html my.pdf
It perfectly show image but when I do the below code so the image not showing I
html_string =…

Habib Ur Rehman
- 59
- 9
0
votes
0 answers
HTML TABLE data overflow from one page to another
I'm doing a dynamic Django template that fills a table with information and I'm currently running issues with data overflow from one page to another which distorts the layout for the header and footer elements
`
def…

Humberto Aragon
- 1
- 1
0
votes
1 answer
Generate multiple PDF report in Django Views For loop
In my Django application, in a Batch, there are multiple Inquiries. Each Inquiry has a related Candidate. A candidate has multiple Addresses. I want to generate a PDF that will include all Candidates and their related Addresses. I am using…

Lone Rider
- 97
- 2
- 10
0
votes
0 answers
Foreign language support for HTML to PDF conversion by weasyprint
I Have an HTML code in which some texts are in the Hindi language. When I am converting the HTML file to PDF using weasyprint library, The generated PDF looks something like this:
This is my code for conversion:
from weasyprint import HTML
output =…

Ayush
- 373
- 4
- 12
0
votes
0 answers
cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
Can Anyone help me with this error. I am tring to use weasyprint to generate pdf file for the information from my models in django.
And I am getting this error I am unable to solve it. Any help is appreciated.
Exception in thread…

Akash Saingar
- 13
- 6