-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when use default_css blank PDF generate. #735
Comments
@Denny814 Thanks for the report! |
Hi @timobrembeck , thanks for looking into it. I am using xhtml2pdf(0.2.13) to generate PDF. When i used 'default_css' to render css in the html file, Blank PDF generate . CSS and the HTML content not rendered in the generated PDF file. Below is my python code Below is my default_css html code Default CSS definition
Below is my html_content html code Example HTML contenthtml_content = """ <title>Sample PDF with Default CSS</title>Hello, World!This is a sample PDF with default CSS. """ Please let me know if anything you needed. Thanks. |
Hi @timobrembeck , Any update on this? |
When using default_css in the CreatePDF(), the generative pdf will blank. PDF not taking any html content.
result = pisa_status = pisa.CreatePDF(html, dest=f, default_css=default_css) also font-family not working when using CreatePDF() . I have tried many ways and update version also.
I have used inline, external css also. Please suggest here.
OS version:
Python version: 3.11.4
XHTML2PDF version: 0.2.13
The text was updated successfully, but these errors were encountered: